Skip to content

Commit 7906ebf

Browse files
committed
try asher approach
1 parent e36a876 commit 7906ebf

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

test/e2e/extensions.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ function runTestExtensionTests() {
88
test("should have access to VSCODE_PROXY_URI", async ({ codeServerPage }) => {
99
const address = await getMaybeProxiedCodeServer(codeServerPage)
1010

11-
await codeServerPage.reloadUntilTestExtensionIsLoaded()
11+
// await codeServerPage.reloadUntilTestExtensionIsLoaded()
12+
await codeServerPage.waitForTestExtensionLoaded()
1213
await codeServerPage.executeCommandViaMenus("code-server: Get proxy URI")
1314

1415
await codeServerPage.page.waitForSelector("text=proxyUri", { timeout: 3000 })

test/e2e/models/CodeServer.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,16 @@ export class CodeServerPage {
336336
return loaded
337337
}
338338

339+
/**
340+
* Checks if the test extension loaded
341+
*/
342+
async waitForTestExtensionLoaded(): Promise<void> {
343+
const selector = "text=test extension loaded"
344+
this.codeServer.logger.debug("Waiting for test extension to load...")
345+
346+
await this.page.waitForSelector(selector)
347+
}
348+
339349
/**
340350
* Focuses the integrated terminal by navigating through the command palette.
341351
*

0 commit comments

Comments
 (0)