From e9f750e4379bb83a802a8dbea96a8932ef9d1636 Mon Sep 17 00:00:00 2001 From: bchanot Date: Sat, 21 Nov 2026 02:14:00 +0100 Subject: [PATCH] fix(tests): the Refaire hold e2e waits for its scroll to settle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The test pressed « Refaire » right after scrollIntoView; under load the scroll event arrived after the press and closed the bubble by design. --- apps/app/e2e/shell/editor-annotations.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/app/e2e/shell/editor-annotations.spec.ts b/apps/app/e2e/shell/editor-annotations.spec.ts index ec39f2a1..edf7b40e 100644 --- a/apps/app/e2e/shell/editor-annotations.spec.ts +++ b/apps/app/e2e/shell/editor-annotations.spec.ts @@ -401,6 +401,8 @@ test.describe('editor annotations (A3)', () => { // Playwright refuses to click an aria-disabled button: scroll it clear of the sticky // bar, then press it at its box (the mouse events are real). await redo.evaluate((el) => el.scrollIntoView({ block: 'center' })) + // Its scroll event lands before the press, which a scroll would close. + await settleScroll(page) await pressAtBox(page, redo) await expect(page.getByTestId('history-hold-bubble')).toHaveText( dict['editor.history.hold_pending'],