Improved API error handling (#12884)

* Improved API error handling

* Remove comment

* Fixes for playwright
This commit is contained in:
Oliver authored and GitHub committed 2026-09-19 16:24:22 +10:00
1 parent fcb1e4f23e
commit 2f9064a5c2
4 files changed
+26 -5

No files matched your search

@@ -484,6 +484,11 @@ test('Stock - Return Items', async ({ browser }) => {
// Location detail
await navigate(page, 'stock/item/1253');
// Allow some settling time for this page
await page.waitForLoadState('networkidle');
await page.waitForTimeout(100);
await page
.getByRole('button', { name: 'action-menu-stock-operations' })
.click();
+4
View File
@@ -444,6 +444,9 @@ test('Settings - Admin - Parameter', async ({ browser }) => {
await page.getByRole('cell', { name: 'Animals', exact: true }).waitFor();
await page.getByText('Various animals and descriptions thereof').waitFor();
await page.waitForLoadState('networkidle');
await page.waitForTimeout(250);
// Clean old list data if exists
await page
.getByRole('cell', { name: 'some list' })
@@ -538,6 +541,7 @@ test('Settings - Admin - Parameter', async ({ browser }) => {
})
.click();
await page.waitForLoadState('networkidle');
await page.waitForTimeout(500);
await page.getByText('Add Parameter').waitFor();