From e8ef8bf8efa22add5ef7eda086a17e464a60ca1b Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Wed, 21 Dec 2022 12:53:36 -0700 Subject: [PATCH] wip: update test --- test/e2e/routes.test.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/test/e2e/routes.test.ts b/test/e2e/routes.test.ts index b93618bc2..056b2d3b2 100644 --- a/test/e2e/routes.test.ts +++ b/test/e2e/routes.test.ts @@ -15,7 +15,17 @@ describe("VS Code Routes", ["--disable-workspace-trust"], {}, async () => { // Check there were no redirections 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 //ide + expected = "something else " + // could also modify left side and stripe //ide... + // in url.pathname + + } + expect(url.pathname).toBe(expected) // TODO@jsjoeio // now that we are in a proper browser instead of scraping the HTML we