2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-04-16 00:08:49 +00:00

Barcode scan tweaks (#10992)

* Remove duplicate tooltip

* Adjust default value

* docs update

* Tweak unit test

* Fix playwright tests
This commit is contained in:
Oliver
2025-12-11 16:19:47 +11:00
committed by GitHub
parent 0723c74567
commit 20c7a5b5b8
9 changed files with 49 additions and 13 deletions

View File

@@ -332,7 +332,7 @@ test('Settings - Admin - Barcode History', async ({ browser }) => {
// Scan some barcodes (via API calls)
const barcodes = ['ABC1234', 'XYZ5678', 'QRS9012'];
const api = await createApi();
const api = await createApi({});
for (let i = 0; i < barcodes.length; i++) {
const barcode = barcodes[i];
@@ -349,8 +349,8 @@ test('Settings - Admin - Barcode History', async ({ browser }) => {
},
timeout: 5000
})
.then(() => {
result = true;
.then((response) => {
result = response.status() === 200;
});
if (result) {
@@ -478,8 +478,6 @@ test('Settings - Admin - Parameter', async ({ browser }) => {
await page.getByRole('option', { name: 'my custom parameter' }).click();
await page.getByLabel('choice-field-data').fill('2');
await page.getByRole('button', { name: 'Submit' }).click();
await page.waitForTimeout(2500);
});
test('Settings - Admin - Unauthorized', async ({ browser }) => {