e3e9f052c4
* chore: add ipc hook to e2e script * refactor: allow codeServerArgs in e2e tests * feat: add --cert e2e extension test * fix: wrap websocket in proxy * fixup: remvoe ignoreHTTPSErrors * fixup: make codeServerArgs readonly * fixup! add back ignoreHTTPSErrors
21 lines
619 B
TypeScript
21 lines
619 B
TypeScript
import { describe, test } from "./baseFixture"
|
|
|
|
function runTestExtensionTests() {
|
|
// This will only work if the test extension is loaded into code-server.
|
|
test("should have access to VSCODE_PROXY_URI", async ({ codeServerPage }) => {
|
|
const address = await codeServerPage.address()
|
|
|
|
await codeServerPage.executeCommandViaMenus("code-server: Get proxy URI")
|
|
|
|
await codeServerPage.page.waitForSelector(`text=${address}/proxy/{{port}}`)
|
|
})
|
|
}
|
|
|
|
describe("Extensions", true, [], () => {
|
|
runTestExtensionTests()
|
|
})
|
|
|
|
describe("Extensions with --cert", true, ["--cert"], () => {
|
|
runTestExtensionTests()
|
|
})
|