fix(tests): the Refaire hold e2e waits for its scroll to settle
The test pressed « Refaire » right after scrollIntoView; under load the scroll event arrived after the press and closed the bubble by design.
This commit is contained in:
1 parent
ddf34ada1f
commit
e9f750e437
1 file changed
+2
@@ -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'],
|
||||
|
||||
Reference in new issue
Block a user