Archived
1
0

add CLI argument --disable-workspace-trust (#5638)

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.
This commit is contained in:
kotborealis
2022-10-13 22:57:04 +03:00
committed by GitHub
parent ba68656353
commit f61ec4a41c
12 changed files with 41 additions and 21 deletions

13
test/e2e/trust.test.ts Normal file
View File

@ -0,0 +1,13 @@
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)
})
})