3d999986b2
* Add test extension This will let us test extension-related features (like the proxy URI). I removed the environment variables in the script because they override the ones you set yourself. We still set defaults in constants.ts. * Add changelog entry for VSCODE_PROXY_URI * Add terminal test for VSCODE_PROXY_URI * Update VS Code This adds the VSCODE_PROXY_URI environment variable.
13 lines
460 B
TypeScript
13 lines
460 B
TypeScript
import { describe, test } from "./baseFixture"
|
|
|
|
describe("Extensions", true, () => {
|
|
// 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}}`)
|
|
})
|
|
})
|