mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 06:38:07 +02:00
Remove the dependency between the order-dependent scripting integration tests
The integration tests are order-dependent because they rely on input field state set by a previous test. This commit fixes the issue by updating the values to match the initial state of the document, which makes sure that we don't build upon values from previous tests while still testing the intended logic in the individual tests like before.
This commit is contained in:
parent
334d681359
commit
0f3692a621
1 changed files with 3 additions and 7 deletions
|
@ -199,7 +199,7 @@ describe("Interaction", () => {
|
|||
`${getQuerySelector("422R")}.value === "2,72"`
|
||||
);
|
||||
await page.waitForFunction(
|
||||
`${getQuerySelector("427R")}.value === "5,86"`
|
||||
`${getQuerySelector("427R")}.value === "2,72"`
|
||||
);
|
||||
})
|
||||
);
|
||||
|
@ -210,17 +210,13 @@ describe("Interaction", () => {
|
|||
pages.map(async ([browserName, page]) => {
|
||||
await waitForScripting(page);
|
||||
|
||||
await page.waitForFunction(
|
||||
`${getQuerySelector("471R")}.value === "4,24"`
|
||||
);
|
||||
|
||||
await page.type(getSelector("436R"), "0.69314");
|
||||
await page.keyboard.press("Escape");
|
||||
await page.waitForFunction(
|
||||
`${getQuerySelector("436R")}.value === "0.69314"`
|
||||
);
|
||||
await page.waitForFunction(
|
||||
`${getQuerySelector("471R")}.value === "3,55"`
|
||||
`${getQuerySelector("471R")}.value === "0,69"`
|
||||
);
|
||||
})
|
||||
);
|
||||
|
@ -237,7 +233,7 @@ describe("Interaction", () => {
|
|||
`${getQuerySelector("419R")}.value === "0.577215"`
|
||||
);
|
||||
await page.waitForFunction(
|
||||
`${getQuerySelector("427R")}.value === "6,44"`
|
||||
`${getQuerySelector("427R")}.value === "0,58"`
|
||||
);
|
||||
})
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue