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 () => {