From 48c6253b3274f964463f3d7ca1b66c8558ee6580 Mon Sep 17 00:00:00 2001 From: Tim van der Meij Date: Tue, 29 Jul 2025 19:01:28 +0200 Subject: [PATCH] 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. --- test/integration/scripting_spec.mjs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/integration/scripting_spec.mjs b/test/integration/scripting_spec.mjs index 8193c3cf9..f3d12e0ce 100644 --- a/test/integration/scripting_spec.mjs +++ b/test/integration/scripting_spec.mjs @@ -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"`