fix(app): close missing child session tabs
This commit is contained in:
parent
f9de608dea
commit
43ff2ee9cc
3 changed files with 14 additions and 2 deletions
|
|
@ -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)
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue