mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-22 15:56:14 +00:00
Improved API error handling (#12884)
* Improved API error handling * Remove comment * Fixes for playwright
This commit is contained in:
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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user