From 1db75ca9fd613086c184af2e058e9c888c5af485 Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Sun, 6 Oct 2024 16:28:12 +0200 Subject: [PATCH] Fix failing integration test on Windws with Chrome It fixes #18775. --- test/integration/highlight_editor_spec.mjs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/integration/highlight_editor_spec.mjs b/test/integration/highlight_editor_spec.mjs index 931ff440a4439d..633b1c8e3894e6 100644 --- a/test/integration/highlight_editor_spec.mjs +++ b/test/integration/highlight_editor_spec.mjs @@ -1802,6 +1802,9 @@ describe("Highlight Editor", () => { y = rect.y - rect.height; await page.mouse.move(x, y); await page.mouse.down(); + await page.waitForSelector( + `.page[data-page-number = "1"] .annotationEditorLayer.drawing` + ); for ( const endY = rect.y + 2 * rect.height; y <= endY; @@ -1811,6 +1814,9 @@ describe("Highlight Editor", () => { } await page.mouse.up(); await awaitPromise(clickHandle); + await page.waitForSelector( + `.page[data-page-number = "1"] .annotationEditorLayer:not(.drawing)` + ); const { count } = await counterHandle.jsonValue(); expect(count).withContext(`In ${browserName}`).toEqual(0);