File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ function runTestExtensionTests() {
8
8
test ( "should have access to VSCODE_PROXY_URI" , async ( { codeServerPage } ) => {
9
9
const address = await getMaybeProxiedCodeServer ( codeServerPage )
10
10
11
- await codeServerPage . reloadUntilTestExtensionIsLoaded ( )
11
+ // await codeServerPage.reloadUntilTestExtensionIsLoaded()
12
+ await codeServerPage . waitForTestExtensionLoaded ( )
12
13
await codeServerPage . executeCommandViaMenus ( "code-server: Get proxy URI" )
13
14
14
15
await codeServerPage . page . waitForSelector ( "text=proxyUri" , { timeout : 3000 } )
Original file line number Diff line number Diff line change @@ -336,6 +336,16 @@ export class CodeServerPage {
336
336
return loaded
337
337
}
338
338
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
+
339
349
/**
340
350
* Focuses the integrated terminal by navigating through the command palette.
341
351
*
You can’t perform that action at this time.
0 commit comments