Skip to content

Commit

Permalink
Merge pull request #17125 from timvandermeij/find-intermittent
Browse files Browse the repository at this point in the history
Fix intermittent problems on Windows in the XFA search integration test
  • Loading branch information
timvandermeij committed Oct 15, 2023
2 parents a9a1195 + 2bae8af commit 22d6d95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/integration/find_spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,19 @@ describe("find bar", () => {
pages.map(async ([browserName, page]) => {
await page.click("#viewFind");
await page.waitForSelector("#viewFind", { hidden: false });
await page.type("#findInput", "city");
await page.type("#findInput", "preferences");
await page.waitForSelector("#findInput[data-status='']");
await page.waitForSelector(".xfaLayer .highlight");
const resultElement = await page.waitForSelector("#findResultsCount");
const resultText = await resultElement.evaluate(el => el.textContent);
expect(resultText).toEqual("1 of 7 matches");
expect(resultText).toEqual("1 of 1 match");
const selectedElement = await page.waitForSelector(
".highlight.selected"
);
const selectedText = await selectedElement.evaluate(
el => el.textContent
);
expect(selectedText).toEqual("City");
expect(selectedText).toEqual("Preferences");
})
);
});
Expand Down

0 comments on commit 22d6d95

Please sign in to comment.