mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-23 16:26:17 +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:
1 parent
0723c74567
commit
20c7a5b5b8
9 files changed
+49
-13
No files matched your search
@@ -1,10 +1,16 @@
|
||||
import { request } from '@playwright/test';
|
||||
import { adminuser, apiUrl } from './defaults';
|
||||
|
||||
export const createApi = () =>
|
||||
export const createApi = ({
|
||||
username,
|
||||
password
|
||||
}: {
|
||||
username?: string;
|
||||
password?: string;
|
||||
}) =>
|
||||
request.newContext({
|
||||
baseURL: apiUrl,
|
||||
extraHTTPHeaders: {
|
||||
Authorization: `Basic ${btoa(`${adminuser.username}:${adminuser.password}`)}`
|
||||
Authorization: `Basic ${btoa(`${username || adminuser.username}:${password || adminuser.password}`)}`
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user