mirror of
https://github.com/coder/code-server.git
synced 2024-11-27 00:10:01 +03:00
f61ec4a41c
Add CLI flag to disable workspace trust feature, as described in documentation: https://code.visualstudio.com/docs/editor/workspace-trust Add test for workspace trust argument.
18 lines
650 B
TypeScript
18 lines
650 B
TypeScript
import { version } from "../../src/node/constants"
|
|
import { describe, test, expect } from "./baseFixture"
|
|
|
|
describe("Open Help > About", ["--disable-workspace-trust"], {}, () => {
|
|
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()
|
|
})
|
|
})
|