Skip to content

Commit 0f9d20f

Browse files
committed
Fix a 'FreeText accessibility' integration test
It's a regression from #20624.
1 parent babd030 commit 0f9d20f

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)