Skip to content

Commit

Permalink
Wait for proxy URI
Browse files Browse the repository at this point in the history
  • Loading branch information
code-asher committed Oct 17, 2024
1 parent 39d29fc commit ed3c4e7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/e2e/extensions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ function runTestExtensionTests() {
await codeServerPage.waitForTestExtensionLoaded()
await codeServerPage.executeCommandViaMenus("code-server: Get proxy URI")

await codeServerPage.page.waitForSelector("text=proxyUri", { timeout: 3000 })
const text = await codeServerPage.page.locator("text=proxyUri").first().textContent()
// Remove end slash in address
// Remove end slash in address.
const normalizedAddress = address.replace(/\/+$/, "")
expect(text).toBe(`Info: proxyUri: ${normalizedAddress}/proxy/{{port}}/`)
await codeServerPage.page.getByText(`Info: proxyUri: ${normalizedAddress}/proxy/{{port}}/`)
})
}

Expand Down

0 comments on commit ed3c4e7

Please sign in to comment.