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:
Tim van der Meij 2026-06-14 16:35:20 +02:00 committed by GitHub
commit 8560125056
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -537,7 +537,11 @@ describe("Comment", () => {
await page.mouse.down();
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();
const rectAfter = await getRect(page, sidebarSelector);