mirror of
https://github.com/coder/code-server.git
synced 2026-04-21 09:35:48 -05:00
wip: update test
This commit is contained in:
@@ -15,7 +15,17 @@ describe("VS Code Routes", ["--disable-workspace-trust"], {}, async () => {
|
|||||||
|
|
||||||
// Check there were no redirections
|
// Check there were no redirections
|
||||||
const url = new URL(codeServerPage.page.url())
|
const url = new URL(codeServerPage.page.url())
|
||||||
expect(url.pathname).toBe(route)
|
let expected = route
|
||||||
|
if (process.env.USE_PROXY === "1") {
|
||||||
|
// TODO@jsjoeio if running behind proxy
|
||||||
|
// we need to modify expected value
|
||||||
|
// instead of / it should be /<port>/ide
|
||||||
|
expected = "something else "
|
||||||
|
// could also modify left side and stripe /<port>/ide...
|
||||||
|
// in url.pathname
|
||||||
|
|
||||||
|
}
|
||||||
|
expect(url.pathname).toBe(expected)
|
||||||
|
|
||||||
// TODO@jsjoeio
|
// TODO@jsjoeio
|
||||||
// now that we are in a proper browser instead of scraping the HTML we
|
// now that we are in a proper browser instead of scraping the HTML we
|
||||||
|
|||||||
Reference in New Issue
Block a user