fix(app): close missing child session tabs

This commit is contained in:
Brendan Allan 2026-07-30 13:02:52 +00:00
commit 43ff2ee9cc
3 changed files with 14 additions and 2 deletions

View file

@ -39,7 +39,9 @@ test("shows the not found fallback when the viewed session is deleted", async ({
})
await expect(page.getByText("This session cannot be found")).toBeVisible()
await expect(page.getByRole("button", { name: "Close Tab" })).toBeVisible()
await page.getByRole("button", { name: "Close Tab" }).click()
await expect(page).toHaveURL(/\/$/)
await expect(page.getByText("This session cannot be found")).toHaveCount(0)
await expect(page.getByRole("heading", { name: taskDescription })).toHaveCount(0)
})