[UI] Display all error table field error messages (#12456)

* Display all error table field error messages

* Adjust playwright test
This commit is contained in:
Oliver
2026-07-27 17:27:34 +10:00
committed by GitHub
parent eb5138127b
commit 2bb8672dc4
2 changed files with 35 additions and 13 deletions
+3 -2
View File
@@ -486,8 +486,9 @@ test('Stock - Return Items', async ({ browser }) => {
await page.getByRole('textbox', { name: 'number-field-quantity' }).fill('0');
await page.getByRole('button', { name: 'Submit' }).click();
await page.getByText('Quantity must be greater than zero').waitFor();
await page.getByText('This field is required.').waitFor();
await page.getByText('Errors exist for one or more form fields').waitFor();
await page.getByText('Quantity must be greater than zero').first().waitFor();
await page.getByText('This field is required.').first().waitFor();
});
test('Stock - Tracking', async ({ browser }) => {