test(app): stop pinning the completion notice icon gap

f270b03dba deliberately tightened the outcome icon's margin from 8px to 6px;
the test now checks that the icon clears the label rather than the exact gap.
This commit is contained in:
Dax Raad
2026-10-20 14:43:27 -04:00
Unverified
parent 848f403896
commit 38d62f72a2
@@ -625,7 +625,8 @@ test("shows a background subagent's outcome as its own row where it finished", a
])
await expect(notice).toHaveAttribute("data-outcome", "completed")
// The outcome icon starts at the column edge like the subagent card, in a 16px box centered on the text line.
// The outcome icon starts at the column edge like the subagent card, in a 16px box centered on the text line and
// clear of the label; the exact gap is styling.
await expect
.poll(async () => {
const [card, icon, label] = await Promise.all([
@@ -637,11 +638,11 @@ test("shows a background subagent's outcome as its own row where it finished", a
return {
inset: icon!.x - card!.x,
size: [icon!.width, icon!.height],
gap: label!.x - icon!.x - icon!.width,
separated: label!.x - icon!.x - icon!.width > 0,
centered: Math.abs(icon!.y + icon!.height / 2 - (label!.y + label!.height / 2)) <= 0.5,
}
})
.toEqual({ inset: 0, size: [16, 16], gap: 8, centered: true })
.toEqual({ inset: 0, size: [16, 16], separated: true, centered: true })
await notice.click()
await expect(page).toHaveURL(new RegExp(`/session/${childID}$`))
})