mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-04-14 01:04:04 +02:00
Merge pull request #20643 from calixteman/fix_integration_test2
Fix a 'FreeText accessibility' integration test
This commit is contained in:
commit
96dbe92b53
@ -2404,11 +2404,12 @@ describe("FreeText Editor", () => {
|
||||
await switchToFreeText(page);
|
||||
|
||||
const parentId = "p3R_mc8";
|
||||
await page.waitForSelector(`#${parentId}`);
|
||||
const rect = await page.evaluate(id => {
|
||||
const parent = document.getElementById(id);
|
||||
let span = null;
|
||||
for (const child of parent.childNodes) {
|
||||
if (child.innerText === "000.[5]") {
|
||||
if (child.innerText.endsWith("000.[5]")) {
|
||||
span = child;
|
||||
break;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user