Visitar URL original
test(app): keep the bulk tab close case off the draft navigation race by usrnk1 · Pull Request #61642 · anomalyco/opencode · GitHub
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions packages/app/e2e/regression/tabs.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ for (const [tabLayout, direction, label] of [
settings: { appearance: { tabLayout } },
},
})
await openWithDirection(page, sessionHref(c.id), direction)
await openWithDirection(page, sessionHref(a.id), direction)

const titles = page.locator("[data-titlebar-tab-slot] [data-titlebar-tab-title]")

Expand All @@ -273,11 +273,10 @@ for (const [tabLayout, direction, label] of [

await expect(titles).toHaveText([a.title, "Session", b.title, c.title])
await draft.click({ button: "right" })
await expect(active).toHaveText(c.title)
await expect(menu.getByRole("menuitem")).toHaveText(["Close tab", "Close other tabs", label])
await menu.getByRole("menuitem", { name: label, exact: true }).click()
await expect(titles).toHaveText([a.title, "Session"])
await expect(active).toHaveText("Session")
await expect(active).toHaveText(a.title)

for (const expected of [
[a.title, "Session", b.title],
Expand Down
Loading