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

This commit is contained in:
Oliver
2026-08-11 11:50:53 +10:00
committed by GitHub
parent 42165a7767
commit a3348248ac
+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');