[CI] Improve robustness for playwright test (#12612) (#12613)

(cherry picked from commit a3348248ac)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
github-actions[bot]
2026-08-11 13:45:45 +10:00
committed by GitHub
co-authored by Oliver
parent 02c37b09c4
commit 9824b228ce
+5
View File
@@ -90,6 +90,11 @@ test('Forms - Stock Item Validation', async ({ browser }) => {
await page.getByLabel('number-field-quantity').fill('123'); await page.getByLabel('number-field-quantity').fill('123');
await page.getByRole('button', { name: 'Submit' }).click(); 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 // Edit the resulting stock item
await openDetailAction(page, 'stock-item', 'edit'); await openDetailAction(page, 'stock-item', 'edit');