Skip to content

Commit 9e7fcfa

Browse files
committed
feat: add --cert e2e extension test
1 parent 947d663 commit 9e7fcfa

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

test/e2e/extensions.test.ts

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
import { describe, test } from "./baseFixture"
22

3-
describe("Extensions", true, () => {
3+
function runTestExtensionTests() {
44
// This will only work if the test extension is loaded into code-server.
55
test("should have access to VSCODE_PROXY_URI", async ({ codeServerPage }) => {
66
const address = await codeServerPage.address()
77

88
await codeServerPage.executeCommandViaMenus("code-server: Get proxy URI")
99

10-
await codeServerPage.page.waitForSelector(`text=${address}/proxy/{port}`)
10+
// Click span:has-text("https://localhost:57989/proxy/{{port}}")
11+
await codeServerPage.page.waitForSelector(`span:has-text("${address}/proxy/{{port}}")`)
1112
})
13+
}
14+
15+
describe("Extensions", true, [], () => {
16+
runTestExtensionTests()
1217
})
18+
19+
describe("Extensions with --cert", true, ["--cert"], () => {
20+
runTestExtensionTests()
21+
})

0 commit comments

Comments
 (0)