()
| 4 | import { describe, test, expect } from "./baseFixture" |
| 5 | |
| 6 | function runTestExtensionTests() { |
| 7 | // This will only work if the test extension is loaded into code-server. |
| 8 | test("should have access to VSCODE_PROXY_URI", async ({ codeServerPage }) => { |
| 9 | const address = await getMaybeProxiedCodeServer(codeServerPage) |
| 10 | |
| 11 | await codeServerPage.waitForTestExtensionLoaded() |
| 12 | await codeServerPage.executeCommandViaMenus("code-server: Get proxy URI") |
| 13 | |
| 14 | // Remove end slash in address. |
| 15 | const normalizedAddress = address.replace(/\/+$/, "") |
| 16 | await expect(codeServerPage.page.getByText(`Info: proxyUri: ${normalizedAddress}/proxy/{{port}}/`)).toBeVisible() |
| 17 | }) |
| 18 | } |
| 19 | |
| 20 | const flags = ["--disable-workspace-trust", "--extensions-dir", path.join(__dirname, "./extensions")] |
| 21 |
no test coverage detected