mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #17947 from timvandermeij/scripting-intermittent
Fix the "must check that a field has the correct value when a choice is changed" scripting integration test
This commit is contained in:
commit
7bd7c6ca5a
1 changed files with 2 additions and 6 deletions
|
@ -1932,18 +1932,14 @@ describe("Interaction", () => {
|
|||
expect(text).withContext(`In ${browserName}`).toEqual("");
|
||||
|
||||
await page.select(getSelector("6R"), "Yes");
|
||||
// eslint-disable-next-line no-restricted-syntax
|
||||
await waitForTimeout(10);
|
||||
|
||||
await page.waitForFunction(`${getQuerySelector("44R")}.value !== ""`);
|
||||
text = await page.$eval(getSelector("44R"), el => el.value);
|
||||
expect(text).withContext(`In ${browserName}`).toEqual("Yes");
|
||||
|
||||
await clearInput(page, getSelector("44R"));
|
||||
|
||||
await page.select(getSelector("6R"), "No");
|
||||
// eslint-disable-next-line no-restricted-syntax
|
||||
await waitForTimeout(10);
|
||||
|
||||
await page.waitForFunction(`${getQuerySelector("44R")}.value !== ""`);
|
||||
text = await page.$eval(getSelector("44R"), el => el.value);
|
||||
expect(text).withContext(`In ${browserName}`).toEqual("No");
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue