Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39d29fc commit ed3c4e7Copy full SHA for ed3c4e7
test/e2e/extensions.test.ts
@@ -11,11 +11,9 @@ function runTestExtensionTests() {
11
await codeServerPage.waitForTestExtensionLoaded()
12
await codeServerPage.executeCommandViaMenus("code-server: Get proxy URI")
13
14
- await codeServerPage.page.waitForSelector("text=proxyUri", { timeout: 3000 })
15
- const text = await codeServerPage.page.locator("text=proxyUri").first().textContent()
16
- // Remove end slash in address
+ // Remove end slash in address.
17
const normalizedAddress = address.replace(/\/+$/, "")
18
- expect(text).toBe(`Info: proxyUri: ${normalizedAddress}/proxy/{{port}}/`)
+ await codeServerPage.page.getByText(`Info: proxyUri: ${normalizedAddress}/proxy/{{port}}/`)
19
})
20
}
21
0 commit comments