Skip to content

Commit e8ef8bf

Browse files
committed
wip: update test
1 parent cbf00ae commit e8ef8bf

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

test/e2e/routes.test.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,17 @@ describe("VS Code Routes", ["--disable-workspace-trust"], {}, async () => {
1515

1616
// Check there were no redirections
1717
const url = new URL(codeServerPage.page.url())
18-
expect(url.pathname).toBe(route)
18+
let expected = route
19+
if (process.env.USE_PROXY === "1") {
20+
// TODO@jsjoeio if running behind proxy
21+
// we need to modify expected value
22+
// instead of / it should be /<port>/ide
23+
expected = "something else "
24+
// could also modify left side and stripe /<port>/ide...
25+
// in url.pathname
26+
27+
}
28+
expect(url.pathname).toBe(expected)
1929

2030
// TODO@jsjoeio
2131
// now that we are in a proper browser instead of scraping the HTML we

0 commit comments

Comments
 (0)