diff --git a/browser_tests/fixtures/ws.ts b/browser_tests/fixtures/ws.ts index f1ab1a538..cc1f88ca1 100644 --- a/browser_tests/fixtures/ws.ts +++ b/browser_tests/fixtures/ws.ts @@ -29,7 +29,7 @@ export const webSocketFixture = base.extend<{ function ([data, url]) { if (!url) { // If no URL specified, use page URL - const u = new URL(window.location.toString()) + const u = new URL(window.location.toString().split('#')[0]) u.protocol = 'ws:' u.pathname = '/' url = u.toString() + 'ws'