File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,14 @@ 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
12
await codeServerPage . executeCommandViaMenus ( "code-server: Get proxy URI" )
12
13
13
- const text = await codeServerPage . page . locator ( ".notification-list-item-message" ) . textContent ( )
14
+ await codeServerPage . page . waitForSelector ( "text=proxyUri" , { timeout : 3000 } )
15
+ const text = await codeServerPage . page . locator ( "text=proxyUri" ) . first ( ) . textContent ( )
14
16
// Remove end slash in address
15
17
const normalizedAddress = address . replace ( / \/ + $ / , "" )
16
- expect ( text ) . toBe ( `${ normalizedAddress } /proxy/{{port}}` )
18
+ expect ( text ) . toBe ( `Info: proxyUri: ${ normalizedAddress } /proxy/{{port}}` )
17
19
} )
18
20
}
19
21
You can’t perform that action at this time.
0 commit comments