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:
calixteman 2026-04-04 20:19:14 +02:00 committed by GitHub
commit da83ca69ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);