mirror of
https://github.com/inventree/InvenTree.git
synced 2026-08-13 00:46:15 +00:00
[CI] Improve robustness for playwright test (#12612)
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user