From 9824b228cec5edc881a4f3ba9c1afc39c754093c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 11 Aug 2026 13:45:45 +1000 Subject: [PATCH] [CI] Improve robustness for playwright test (#12612) (#12613) (cherry picked from commit a3348248acd79371d2f42e84fd1cabb8a595e74f) Co-authored-by: Oliver --- src/frontend/tests/pui_forms.spec.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/frontend/tests/pui_forms.spec.ts b/src/frontend/tests/pui_forms.spec.ts index 3f0d155ac8..4912a5053e 100644 --- a/src/frontend/tests/pui_forms.spec.ts +++ b/src/frontend/tests/pui_forms.spec.ts @@ -90,6 +90,11 @@ test('Forms - Stock Item Validation', async ({ browser }) => { await page.getByLabel('number-field-quantity').fill('123'); await page.getByRole('button', { name: 'Submit' }).click(); + // Add small delay to improve test stability + await page.getByText('BATCH-123', { exact: true }).first().waitFor(); + await page.waitForLoadState('networkidle'); + await page.waitForTimeout(250); + // Edit the resulting stock item await openDetailAction(page, 'stock-item', 'edit');