Skip to content

Commit 5841027

Browse files
committed
test(webui): expect the launcher's canonical address in the tab acceptance
The launcher routes a typed address through the browser's own address normaliser, so a bare host arrives with the root path the URL parser gives it. The expectation still carried the pre-normalisation form.
1 parent aed1d86 commit 5841027

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎packages/webui/test/integration/workspace-browser-tab-acceptance.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,10 @@ describe.skipIf(!available)("the acceptance of the workspace browser tab model",
530530
const state = reduceWorkspacePanelState(panel(), { type: "open-new-tab" });
531531
const tabId = state.activeTabId!;
532532
const url = webuiWorkspaceLauncherUrl("example.test");
533-
expect(url).toBe("https://example.test");
533+
// The launcher hands the browser the same canonical address the
534+
// address bar uses, so a bare host arrives with the root path the
535+
// URL parser gives it.
536+
expect(url).toBe("https://example.test/");
534537

535538
const entry = handler("openBrowserWebTab");
536539
const opened = (await entry.handle(

0 commit comments

Comments
 (0)