From 598caa0d05a6574ef673cd7a33b1ba6c8c760349 Mon Sep 17 00:00:00 2001 From: Savannah Ostrowski Date: Wed, 17 Jun 2026 21:05:38 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Assert=20opened=20URL=20by=20host?= =?UTF-8?q?=20instead=20of=20substring?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/cloud/ui/menus.test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/test/cloud/ui/menus.test.ts b/src/test/cloud/ui/menus.test.ts index 4b6a42d..6de2bec 100644 --- a/src/test/cloud/ui/menus.test.ts +++ b/src/test/cloud/ui/menus.test.ts @@ -207,9 +207,8 @@ suite("cloud/ui/menus", () => { await handler.showMenu() assert.ok(openStub.calledOnce) - assert.ok( - openStub.firstCall.args[0].toString().includes("test-app.example.com"), - ) + const openedUrl = new URL(openStub.firstCall.args[0].toString()) + assert.strictEqual(openedUrl.host, "test-app.example.com") }) test("opens dashboard when dashboard selected", async () => {