fix(frontend): Improve flakiness issues (#12617)

* small improvements to reduce flakiness

* disable throtteling to fix flaking tests
This commit is contained in:
Matthias Mair
2026-08-11 18:48:01 +10:00
committed by GitHub
parent f054a487ef
commit 7a935f6055
4 changed files with 22 additions and 15 deletions
+6 -6
View File
@@ -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({});