mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-25 00:17:21 +02:00
Fix a 'FreeText accessibility' integration test
It's a regression from #20624.
This commit is contained in:
parent
babd030a77
commit
0f9d20fa32
@ -2404,11 +2404,12 @@ describe("FreeText Editor", () => {
|
|||||||
await switchToFreeText(page);
|
await switchToFreeText(page);
|
||||||
|
|
||||||
const parentId = "p3R_mc8";
|
const parentId = "p3R_mc8";
|
||||||
|
await page.waitForSelector(`#${parentId}`);
|
||||||
const rect = await page.evaluate(id => {
|
const rect = await page.evaluate(id => {
|
||||||
const parent = document.getElementById(id);
|
const parent = document.getElementById(id);
|
||||||
let span = null;
|
let span = null;
|
||||||
for (const child of parent.childNodes) {
|
for (const child of parent.childNodes) {
|
||||||
if (child.innerText === "000.[5]") {
|
if (child.innerText.endsWith("000.[5]")) {
|
||||||
span = child;
|
span = child;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user