From 6ef188416f0507cd20ee18d4d34ab116b8826b06 Mon Sep 17 00:00:00 2001 From: "paseo-bot[bot]" <266920839+paseo-bot[bot]@users.noreply.github.com> Date: Mon, 16 Nov 2026 18:04:29 +0000 Subject: [PATCH] test(e2e): start the plugin modal settle check once the sheet is in view (#9889) The compact sheet holds below the viewport for a few frames before it slides up. On a slow runner two settle reads 100 ms apart can both land in that hold. Waiting for the title to enter the viewport first means the settle check only starts once the slide has begun. Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 --- packages/app/e2e/browser/plugin-modal-body.spec.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/app/e2e/browser/plugin-modal-body.spec.ts b/packages/app/e2e/browser/plugin-modal-body.spec.ts index 1da47e752..1ce525269 100644 --- a/packages/app/e2e/browser/plugin-modal-body.spec.ts +++ b/packages/app/e2e/browser/plugin-modal-body.spec.ts @@ -7,9 +7,10 @@ import { waitForSettledPosition } from "../support/helpers/sheet-layout"; async function openExample(page: Page, example: string) { await page.getByRole("button", { name: `Open ${example}`, exact: true }).click(); const title = page.getByText(`Modal example: ${example}`, { exact: true }); - await expect(title).toBeVisible(); // A compact sheet holds below the viewport and then slides up, so a pointer placed before it - // stops lands on whatever slides under it. + // stops lands on whatever slides under it. The settle check starts once the slide has begun; + // two equal reads during the hold would otherwise count as settled. + await expect(title).toBeInViewport(); await waitForSettledPosition(title); }