Skip to content

Commit

Permalink
Fix failing integration test on Windws with Chrome
Browse files Browse the repository at this point in the history
It fixes mozilla#18775.
  • Loading branch information
calixteman committed Oct 6, 2024
1 parent 81cf42d commit 1db75ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/integration/highlight_editor_spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit 1db75ca

Please sign in to comment.