Revert "refactor: remove version check e2e test"

This reverts commit b23c398b7d.
This commit is contained in:
Joe Previte 2022-07-19 11:06:16 -07:00
parent 969eb55ac3
commit 8ccacf3fef
No known key found for this signature in database
GPG Key ID: 2C91590C6B742C24
1 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,4 @@
import { version } from "../../src/node/constants"
import { describe, test, expect } from "./baseFixture" import { describe, test, expect } from "./baseFixture"
describe("Open Help > About", true, [], {}, () => { describe("Open Help > About", true, [], {}, () => {
@ -5,8 +6,12 @@ describe("Open Help > About", true, [], {}, () => {
// Open using the menu. // Open using the menu.
await codeServerPage.navigateMenus(["Help", "About"]) await codeServerPage.navigateMenus(["Help", "About"])
const isDevMode = process.env.VSCODE_DEV === "1"
// Look for code-server info div. // Look for code-server info div.
const element = await codeServerPage.page.waitForSelector(`div[role="dialog"] >> text=code-server`) const element = await codeServerPage.page.waitForSelector(
`div[role="dialog"] >> text=code-server: ${isDevMode ? "Unknown" : "v" + version}`,
)
expect(element).not.toBeNull() expect(element).not.toBeNull()
}) })
}) })