Merge pull request #20190 from timvandermeij/text-layer-permafail

Improve the selection check in the "doesn't jump when moving selection" integration test
This commit is contained in:
Tim van der Meij 2025-08-25 19:40:27 +02:00 committed by GitHub
commit ab41f5095c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -509,7 +509,7 @@ describe("Text layer", () => {
await expectAsync(page)
.withContext(`second selection`)
.toHaveRoughlySelected(/frequently .* We call such a se/s);
.toHaveRoughlySelected(/frequently .* We call such a s/s);
await page.mouse.down();
await moveInSteps(page, intermediateCaretPos, finalCaretPos, 20);
@ -517,7 +517,7 @@ describe("Text layer", () => {
await expectAsync(page)
.withContext(`third selection`)
.toHaveRoughlySelected(/frequently .* We call such a se/s);
.toHaveRoughlySelected(/frequently .* We call such a s/s);
});
});
});