Skip to content

Commit 96dbe92

Browse files
Merge pull request #20643 from calixteman/fix_integration_test2
Fix a 'FreeText accessibility' integration test
2 parents 0b5f402 + 0f9d20f commit 96dbe92

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/integration/freetext_editor_spec.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2404,11 +2404,12 @@ describe("FreeText Editor", () => {
24042404
await switchToFreeText(page);
24052405

24062406
const parentId = "p3R_mc8";
2407+
await page.waitForSelector(`#${parentId}`);
24072408
const rect = await page.evaluate(id => {
24082409
const parent = document.getElementById(id);
24092410
let span = null;
24102411
for (const child of parent.childNodes) {
2411-
if (child.innerText === "000.[5]") {
2412+
if (child.innerText.endsWith("000.[5]")) {
24122413
span = child;
24132414
break;
24142415
}

0 commit comments

Comments
 (0)