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.
This commit is contained in:
Tim van der Meij 2025-07-29 19:01:28 +02:00
parent f16e0b6daa
commit 48c6253b32
No known key found for this signature in database
GPG Key ID: 8C3FD2925A5F2762

View File

@ -2392,9 +2392,7 @@ describe("Interaction", () => {
pages.map(async ([browserName, page], i) => {
await waitForScripting(page);
const inputSelector = getSelector("33R");
await page.click(inputSelector);
await page.type(inputSelector, "7");
await typeAndWaitForSandbox(page, getSelector("33R"), "7");
await page.click(getSelector("34R"));
await page.waitForFunction(
`${getQuerySelector("35R")}.value === "324,00"`