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'],