mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-04-12 00:04:02 +02:00
Merge pull request #21045 from timvandermeij/integration-test-comment-trip
Fix intermittent failure in the "must check that the comment sidebar is resizable with the keyboard" comment integration test
This commit is contained in:
commit
da83ca69ca
@ -571,10 +571,10 @@ describe("Comment", () => {
|
||||
const rect = await getRect(page, sidebarSelector);
|
||||
const arrowKey = extraWidth > 0 ? "ArrowLeft" : "ArrowRight";
|
||||
for (let i = 0; i < Math.abs(extraWidth); i++) {
|
||||
await waitForBrowserTrip(page);
|
||||
await kbModifierDown(page);
|
||||
await page.keyboard.press(arrowKey);
|
||||
await kbModifierUp(page);
|
||||
await waitForBrowserTrip(page);
|
||||
}
|
||||
|
||||
const rectAfter = await getRect(page, sidebarSelector);
|
||||
@ -592,6 +592,7 @@ describe("Comment", () => {
|
||||
const arrowKey = extraWidth > 0 ? "ArrowLeft" : "ArrowRight";
|
||||
for (let i = 0; i < Math.abs(extraWidth); i++) {
|
||||
await page.keyboard.press(arrowKey);
|
||||
await waitForBrowserTrip(page);
|
||||
}
|
||||
|
||||
const rectAfter = await getRect(page, sidebarSelector);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user