Skip to content

Commit

Permalink
Merge pull request #17940 from timvandermeij/scripting-test
Browse files Browse the repository at this point in the history
Fix the "must check that invisible fields are made visible" scripting integration test
  • Loading branch information
timvandermeij authored Apr 15, 2024
2 parents e08de77 + 2e9bd49 commit 60f02ea
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/integration/scripting_spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2104,9 +2104,10 @@ describe("Interaction", () => {
expect(visibility).withContext(`In ${browserName}`).toEqual("hidden");

await page.click(getSelector("11R"));
// eslint-disable-next-line no-restricted-syntax
await waitForTimeout(10);

await page.waitForFunction(
`${getComputedStyleSelector("7R")}.visibility !== "hidden"`
);
visibility = await page.$eval(
getSelector("7R"),
el => getComputedStyle(el).visibility
Expand All @@ -2115,6 +2116,9 @@ describe("Interaction", () => {
.withContext(`In ${browserName}`)
.toEqual("visible");

await page.waitForFunction(
`${getComputedStyleSelector("8R")}.visibility !== "hidden"`
);
visibility = await page.$eval(
getSelector("8R"),
el => getComputedStyle(el).visibility
Expand Down

0 comments on commit 60f02ea

Please sign in to comment.