@@ -8,32 +8,27 @@ function runTestExtensionTests() {
8
8
test ( "should have access to VSCODE_PROXY_URI" , async ( { codeServerPage } ) => {
9
9
const address = await getMaybeProxiedCodeServer ( codeServerPage )
10
10
11
- // TODO@jsjoeio - here... we need to reload until selector is available
12
- // maybe something like
13
- // isExtensionLoaded
14
- // reloadUntilExtensionLoaded
11
+ await codeServerPage . reloadUntilTestExtensionIsLoaded ( )
15
12
await codeServerPage . executeCommandViaMenus ( "code-server: Get proxy URI" )
16
13
17
- await codeServerPage . page . waitForSelector ( ".notification-list-item-message" , {
18
- timeout : 3000
19
- } )
20
- 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 ( )
21
16
// Remove end slash in address
22
17
const normalizedAddress = address . replace ( / \/ + $ / , "" )
23
- expect ( text ) . toBe ( `${ normalizedAddress } /proxy/{{port}}` )
18
+ expect ( text ) . toBe ( `Info: proxyUri: ${ normalizedAddress } /proxy/{{port}}` )
24
19
} )
25
20
}
26
21
27
22
const flags = [ "--extensions-dir" , path . join ( __dirname , "./extensions" ) ]
28
23
29
- describe ( "Extensions" , flags , { } , ( ) => {
30
- runTestExtensionTests ( )
31
- } )
24
+ // describe("Extensions", flags, {}, () => {
25
+ // runTestExtensionTests()
26
+ // })
32
27
33
28
if ( process . env . USE_PROXY !== "1" ) {
34
29
describe ( "Extensions with --cert" , [ ...flags , "--cert" ] , { } , ( ) => {
35
30
runTestExtensionTests ( )
36
- } )
31
+ } , )
37
32
} else {
38
33
base . describe ( "Extensions with --cert" , ( ) => {
39
34
base . skip ( "skipped because USE_PROXY is set" , ( ) => {
0 commit comments