Merge pull request #20643 from calixteman/fix_integration_test2

Fix a 'FreeText accessibility' integration test
This commit is contained in:
Tim van der Meij 2026-02-09 20:46:05 +01:00 committed by GitHub
commit 96dbe92b53
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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