From 38d62f72a2076dd05e7b24e4f2d00430e2f8d23e Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Tue, 20 Oct 2026 14:43:27 -0400 Subject: [PATCH] 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. --- packages/app/e2e/regression/timeline-stream.spec.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/app/e2e/regression/timeline-stream.spec.ts b/packages/app/e2e/regression/timeline-stream.spec.ts index 9fe9568e1bc..22475cac605 100644 --- a/packages/app/e2e/regression/timeline-stream.spec.ts +++ b/packages/app/e2e/regression/timeline-stream.spec.ts @@ -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}$`)) })