mirror of
https://github.com/cdr/code-server.git
synced 2025-12-06 08:27:17 +01:00
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.
13 lines
540 B
TypeScript
13 lines
540 B
TypeScript
import { describe, test, expect } from "./baseFixture"
|
|
|
|
describe("Workspace trust (enabled)", [], {}, async () => {
|
|
test("should see the 'I Trust...' option", async ({ codeServerPage }) => {
|
|
expect(await codeServerPage.page.isVisible("text=Yes, I trust")).toBe(true)
|
|
})
|
|
})
|
|
|
|
describe("Workspace trust (disabled)", ["--disable-workspace-trust"], {}, async () => {
|
|
test("should not see the 'I Trust...' option", async ({ codeServerPage }) => {
|
|
expect(await codeServerPage.page.isVisible("text=Yes, I trust")).toBe(false)
|
|
})
|
|
})
|