diff --git a/test/integration/scripting_spec.js b/test/integration/scripting_spec.js index 540d0c7fb3fef..20c48a149c0b5 100644 --- a/test/integration/scripting_spec.js +++ b/test/integration/scripting_spec.js @@ -1414,6 +1414,9 @@ describe("Interaction", () => { .toEqual("visible"); await page.click(getSelector("44R")); + await page.waitForFunction( + `document.querySelector("[data-annotation-id='35R']").style.visibility === "hidden"` + ); visibility = await page.$eval( "[data-annotation-id='35R']",