mirror of
https://github.com/inventree/InvenTree.git
synced 2026-04-01 00:51:06 +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,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