From 8ccacf3fef4b4e5199783c138d9815382fb55592 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Tue, 19 Jul 2022 11:06:16 -0700 Subject: [PATCH] Revert "refactor: remove version check e2e test" This reverts commit b23c398b7d725e46b4b7a0bbc900aebc6bd277f3. --- test/e2e/openHelpAbout.test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/e2e/openHelpAbout.test.ts b/test/e2e/openHelpAbout.test.ts index 83e26caee..74b54c812 100644 --- a/test/e2e/openHelpAbout.test.ts +++ b/test/e2e/openHelpAbout.test.ts @@ -1,3 +1,4 @@ +import { version } from "../../src/node/constants" import { describe, test, expect } from "./baseFixture" describe("Open Help > About", true, [], {}, () => { @@ -5,8 +6,12 @@ describe("Open Help > About", true, [], {}, () => { // 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`) + const element = await codeServerPage.page.waitForSelector( + `div[role="dialog"] >> text=code-server: ${isDevMode ? "Unknown" : "v" + version}`, + ) expect(element).not.toBeNull() }) })