Merge pull request #16970 from timvandermeij/fix-intermittent-border

Fix integration test "Interaction in issue15053.pdf must check that a button and text field with a border are hidden"
This commit is contained in:
Tim van der Meij 2023-09-23 14:35:07 +02:00 committed by GitHub
commit a09b7228fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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']",