5bc26e90cb
* Fix code-server version not appearing in other languages It needs to be separate from the localize call since the language version of that string is used and it will not include a spot for the code-server version. I also moved the "v" so we do not get "vUnknown". * Add code-server version to product configuration Before 1.64 the entire product configuration was sent to the client but that was removed so we have to add anything we want to use on the client, like the code-server version (used in the about dialog). Fixes #5027. * Refresh patches * Change version test to look for specific version This will catch if we are not sending the actual version to the client.
18 lines
629 B
TypeScript
18 lines
629 B
TypeScript
import { version } from "../../src/node/constants"
|
|
import { describe, test, expect } from "./baseFixture"
|
|
|
|
describe("Open Help > About", true, [], {}, () => {
|
|
test("should see code-server version in about dialog", async ({ codeServerPage }) => {
|
|
// Open using the menu.
|
|
await codeServerPage.navigateMenus(["Help", "About"])
|
|
|
|
const isDevMode = process.env.VSCODE_DEV === "1"
|
|
|
|
// Look for code-server info div.
|
|
const element = await codeServerPage.page.waitForSelector(
|
|
`div[role="dialog"] >> text=code-server: ${isDevMode ? "Unknown" : "v" + version}`,
|
|
)
|
|
expect(element).not.toBeNull()
|
|
})
|
|
})
|