From d3a5502a2cc58952e20796768f815ee47f3bb458 Mon Sep 17 00:00:00 2001 From: Omri Katz <9701896+omridevk@users.noreply.github.com> Date: Sun, 1 Nov 2026 02:24:39 +0200 Subject: [PATCH] Stop the capture-pipeline embed test from closing the born-open session card The page session card is born open while its message is the last one (autoOpen, folded only once a later message exists), so the test's click on the card header toggled it closed. The step text and the Script trigger stayed hittable only during the 200ms collapse, so the Script click raced the animation and, once the card finished closing, timed out on an invisible target. Assert the card is expanded instead of clicking it, the same fix #597 applied to the session-card stories. Co-Authored-By: Claude Fable 5.1 --- packages/embed/tests/e2e/embed.it.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/embed/tests/e2e/embed.it.test.ts b/packages/embed/tests/e2e/embed.it.test.ts index 2b34af9132..98ebc834d1 100644 --- a/packages/embed/tests/e2e/embed.it.test.ts +++ b/packages/embed/tests/e2e/embed.it.test.ts @@ -1165,7 +1165,7 @@ test.describe('element capture', () => { const sessionCard = page.getByRole('button', {name: /Edited the page/}) await expect(sessionCard).toBeVisible({timeout: 30_000}) await expect(page.getByRole('button', {name: /Set the text/})).toHaveCount(0) - await sessionCard.click() + await expect(sessionCard).toHaveAttribute('aria-expanded', 'true') const dialog = page.getByRole('dialog', {name: 'conciv chat agent'}) const stepTarget = dialog.getByText('rendered through the pipeline', {exact: true}) await expect(stepTarget).toBeVisible({timeout: 30_000})