mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-06-26 01:55:48 +02:00
Merge pull request #21448 from timvandermeij/comment-intermittent
Fix intermittent failure in the `must check that the comment sidebar is resizable` comment integration test
This commit is contained in:
commit
8560125056
@ -537,7 +537,11 @@ describe("Comment", () => {
|
|||||||
await page.mouse.down();
|
await page.mouse.down();
|
||||||
|
|
||||||
const steps = 20;
|
const steps = 20;
|
||||||
await page.mouse.move(startX - extraWidth, startY, { steps });
|
for (let i = 1; i <= steps; i++) {
|
||||||
|
const x = Math.round(startX - (extraWidth * i) / steps);
|
||||||
|
await page.mouse.move(x, startY);
|
||||||
|
await waitForBrowserTrip(page);
|
||||||
|
}
|
||||||
await page.mouse.up();
|
await page.mouse.up();
|
||||||
|
|
||||||
const rectAfter = await getRect(page, sidebarSelector);
|
const rectAfter = await getRect(page, sidebarSelector);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user