mirror of
https://github.com/inventree/InvenTree.git
synced 2026-09-01 09:41:22 +00:00
fix(frontend): Improve flakiness issues (#12617)
* small improvements to reduce flakiness * disable throtteling to fix flaking tests
This commit is contained in:
@@ -368,17 +368,17 @@ test('Settings - Admin - Background Tasks', async ({ browser }) => {
|
||||
});
|
||||
|
||||
test('Settings - Admin - Barcode History', async ({ browser }) => {
|
||||
// Login with admin credentials
|
||||
const page = await doCachedLogin(browser, {
|
||||
user: adminuser
|
||||
});
|
||||
|
||||
// Ensure that the "save scans" setting is enabled
|
||||
// Ensure that the "save scans" setting is enabled; done before first load of test to reduce flakiness
|
||||
await setSettingState({
|
||||
setting: 'BARCODE_STORE_RESULTS',
|
||||
value: true
|
||||
});
|
||||
|
||||
// Login with admin credentials
|
||||
const page = await doCachedLogin(browser, {
|
||||
user: adminuser
|
||||
});
|
||||
|
||||
// Scan some barcodes (via API calls)
|
||||
const barcodes = ['ABC1234', 'XYZ5678', 'QRS9012'];
|
||||
const api = await createApi({});
|
||||
|
||||
Reference in New Issue
Block a user