Skip to content

Commit 48c6253

Browse files
committed
Fix intermittent failure in the "must check that the computed value is correct" scripting integration test
Typing in the text field causes a sandbox event to trigger, which we should await to avoid continuing to the next part of the test before the sandbox event is fully processed.
1 parent f16e0b6 commit 48c6253

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/integration/scripting_spec.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2392,9 +2392,7 @@ describe("Interaction", () => {
23922392
pages.map(async ([browserName, page], i) => {
23932393
await waitForScripting(page);
23942394

2395-
const inputSelector = getSelector("33R");
2396-
await page.click(inputSelector);
2397-
await page.type(inputSelector, "7");
2395+
await typeAndWaitForSandbox(page, getSelector("33R"), "7");
23982396
await page.click(getSelector("34R"));
23992397
await page.waitForFunction(
24002398
`${getQuerySelector("35R")}.value === "324,00"`

0 commit comments

Comments
 (0)