From d728b1165587ff3cb8bc17d2d9ed412626e665aa Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Mon, 29 Apr 2024 00:19:05 +0200 Subject: [PATCH] Small style fixes (#7117) * small style fixes * fix typescript:S1854 * remove unused function handleCellClick * disable cov --- src/backend/InvenTree/InvenTree/settings.py | 18 ++++++----- .../src/components/details/Details.tsx | 3 +- .../src/components/details/ItemDetails.tsx | 2 -- .../editors/TemplateEditor/TemplateEditor.tsx | 1 - src/frontend/src/components/forms/ApiForm.tsx | 8 +++-- .../src/components/forms/fields/DateField.tsx | 1 - .../forms/fields/RelatedModelField.tsx | 2 +- .../src/components/items/AttachmentLink.tsx | 7 +++-- src/frontend/src/components/nav/Header.tsx | 2 +- src/frontend/src/forms/CompanyForms.tsx | 2 +- src/frontend/src/forms/StockForms.tsx | 3 +- src/frontend/src/functions/icons.tsx | 19 ++++++------ src/frontend/src/pages/Index/Scan.tsx | 1 - .../pages/Index/Settings/SystemSettings.tsx | 1 - .../pages/company/ManufacturerPartDetail.tsx | 1 - .../pages/purchasing/PurchaseOrderDetail.tsx | 4 +-- .../src/pages/sales/ReturnOrderDetail.tsx | 2 -- .../src/pages/sales/SalesOrderDetail.tsx | 3 -- .../src/pages/stock/LocationDetail.tsx | 1 - .../src/tables/build/BuildOutputTable.tsx | 6 +--- .../src/tables/company/CompanyTable.tsx | 1 - .../src/tables/part/ParametricPartTable.tsx | 31 +------------------ .../tables/part/PartCategoryTemplateTable.tsx | 1 - src/frontend/src/tables/part/PartTable.tsx | 2 -- .../tables/purchasing/SupplierPartTable.tsx | 1 - src/frontend/tests/pages/pui_index.spec.ts | 1 - src/frontend/tests/pui_basic.spec.ts | 2 +- src/frontend/tests/pui_general.spec.ts | 2 +- src/frontend/tests/pui_stock.spec.ts | 4 +-- 29 files changed, 40 insertions(+), 92 deletions(-) diff --git a/src/backend/InvenTree/InvenTree/settings.py b/src/backend/InvenTree/InvenTree/settings.py index 7bda362b49..8a78d083de 100644 --- a/src/backend/InvenTree/InvenTree/settings.py +++ b/src/backend/InvenTree/InvenTree/settings.py @@ -1090,19 +1090,21 @@ if SITE_URL and SITE_URL not in CSRF_TRUSTED_ORIGINS: if DEBUG: for origin in [ 'http://localhost', - 'http://*.localhost' 'http://*localhost:8000', + 'http://*.localhost', + 'http://*localhost:8000', 'http://*localhost:5173', ]: if origin not in CSRF_TRUSTED_ORIGINS: CSRF_TRUSTED_ORIGINS.append(origin) -if not TESTING and len(CSRF_TRUSTED_ORIGINS) == 0: - if isInMainThread(): - # Server thread cannot run without CSRF_TRUSTED_ORIGINS - logger.error( - 'No CSRF_TRUSTED_ORIGINS specified. Please provide a list of trusted origins, or specify INVENTREE_SITE_URL' - ) - sys.exit(-1) +if ( + not TESTING and len(CSRF_TRUSTED_ORIGINS) == 0 and isInMainThread() +): # pragma: no cover + # Server thread cannot run without CSRF_TRUSTED_ORIGINS + logger.error( + 'No CSRF_TRUSTED_ORIGINS specified. Please provide a list of trusted origins, or specify INVENTREE_SITE_URL' + ) + sys.exit(-1) # Additional CSRF settings CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN' diff --git a/src/frontend/src/components/details/Details.tsx b/src/frontend/src/components/details/Details.tsx index e0c8a6cc44..fddfce0e7d 100644 --- a/src/frontend/src/components/details/Details.tsx +++ b/src/frontend/src/components/details/Details.tsx @@ -1,10 +1,9 @@ -import { Trans, t } from '@lingui/macro'; +import { t } from '@lingui/macro'; import { ActionIcon, Anchor, Badge, CopyButton, - Group, Paper, Skeleton, Stack, diff --git a/src/frontend/src/components/details/ItemDetails.tsx b/src/frontend/src/components/details/ItemDetails.tsx index d8e1069d2a..e2116240ff 100644 --- a/src/frontend/src/components/details/ItemDetails.tsx +++ b/src/frontend/src/components/details/ItemDetails.tsx @@ -1,8 +1,6 @@ import { Paper, SimpleGrid } from '@mantine/core'; import React from 'react'; -import { DetailImageButtonProps } from './DetailsImage'; - export function ItemDetailsGrid(props: React.PropsWithChildren<{}>) { return ( diff --git a/src/frontend/src/components/editors/TemplateEditor/TemplateEditor.tsx b/src/frontend/src/components/editors/TemplateEditor/TemplateEditor.tsx index d5efc93d91..6fd8d1dab9 100644 --- a/src/frontend/src/components/editors/TemplateEditor/TemplateEditor.tsx +++ b/src/frontend/src/components/editors/TemplateEditor/TemplateEditor.tsx @@ -14,7 +14,6 @@ import { IconAlertTriangle, IconDeviceFloppy, IconExclamationCircle, - IconProps, IconRefresh } from '@tabler/icons-react'; import Split from '@uiw/react-split'; diff --git a/src/frontend/src/components/forms/ApiForm.tsx b/src/frontend/src/components/forms/ApiForm.tsx index 6b49748fed..20258df17c 100644 --- a/src/frontend/src/components/forms/ApiForm.tsx +++ b/src/frontend/src/components/forms/ApiForm.tsx @@ -1,17 +1,19 @@ import { t } from '@lingui/macro'; import { Alert, + Button, DefaultMantineColor, + Divider, + Group, LoadingOverlay, Paper, + Stack, Text } from '@mantine/core'; -import { Button, Divider, Group, Stack } from '@mantine/core'; import { useId } from '@mantine/hooks'; import { notifications } from '@mantine/notifications'; import { useQuery } from '@tanstack/react-query'; -import { useCallback, useEffect, useMemo, useRef } from 'react'; -import { useState } from 'react'; +import { useCallback, useEffect, useMemo, useState } from 'react'; import { FieldValues, FormProvider, diff --git a/src/frontend/src/components/forms/fields/DateField.tsx b/src/frontend/src/components/forms/fields/DateField.tsx index 2ccd1e1a3a..764a222212 100644 --- a/src/frontend/src/components/forms/fields/DateField.tsx +++ b/src/frontend/src/components/forms/fields/DateField.tsx @@ -30,7 +30,6 @@ export default function DateField({ // Convert the returned date object to a string if (value) { value = value.toString(); - let date = new Date(value); value = dayjs(value).format(valueFormat); } diff --git a/src/frontend/src/components/forms/fields/RelatedModelField.tsx b/src/frontend/src/components/forms/fields/RelatedModelField.tsx index 6613f1d48c..0f615765b2 100644 --- a/src/frontend/src/components/forms/fields/RelatedModelField.tsx +++ b/src/frontend/src/components/forms/fields/RelatedModelField.tsx @@ -78,7 +78,7 @@ export function RelatedModelField({ // Search input query const [value, setValue] = useState(''); - const [searchText, cancelSearchText] = useDebouncedValue(value, 250); + const [searchText] = useDebouncedValue(value, 250); const [filters, setFilters] = useState({}); diff --git a/src/frontend/src/components/items/AttachmentLink.tsx b/src/frontend/src/components/items/AttachmentLink.tsx index 43497ae375..bd615a73ff 100644 --- a/src/frontend/src/components/items/AttachmentLink.tsx +++ b/src/frontend/src/components/items/AttachmentLink.tsx @@ -1,12 +1,13 @@ -import { Anchor, Group, Text } from '@mantine/core'; -import { IconLink, IconPhoto } from '@tabler/icons-react'; +import { Anchor, Group } from '@mantine/core'; import { IconFile, IconFileTypeCsv, IconFileTypeDoc, IconFileTypePdf, IconFileTypeXls, - IconFileTypeZip + IconFileTypeZip, + IconLink, + IconPhoto } from '@tabler/icons-react'; import { ReactNode, useMemo } from 'react'; diff --git a/src/frontend/src/components/nav/Header.tsx b/src/frontend/src/components/nav/Header.tsx index 1c344c1d82..1d641032ca 100644 --- a/src/frontend/src/components/nav/Header.tsx +++ b/src/frontend/src/components/nav/Header.tsx @@ -3,7 +3,7 @@ import { useDisclosure } from '@mantine/hooks'; import { IconBell, IconSearch } from '@tabler/icons-react'; import { useQuery } from '@tanstack/react-query'; import { useEffect, useState } from 'react'; -import { useMatch, useNavigate, useParams } from 'react-router-dom'; +import { useMatch, useNavigate } from 'react-router-dom'; import { api } from '../../App'; import { navTabs as mainNavTabs } from '../../defaults/links'; diff --git a/src/frontend/src/forms/CompanyForms.tsx b/src/frontend/src/forms/CompanyForms.tsx index 50b5d77190..7073110004 100644 --- a/src/frontend/src/forms/CompanyForms.tsx +++ b/src/frontend/src/forms/CompanyForms.tsx @@ -8,7 +8,7 @@ import { IconPackage, IconPhone } from '@tabler/icons-react'; -import { useEffect, useMemo, useState } from 'react'; +import { useMemo } from 'react'; import { ApiFormAdjustFilterType, diff --git a/src/frontend/src/forms/StockForms.tsx b/src/frontend/src/forms/StockForms.tsx index ccc7276ab5..b408f1ece4 100644 --- a/src/frontend/src/forms/StockForms.tsx +++ b/src/frontend/src/forms/StockForms.tsx @@ -19,8 +19,7 @@ import { InvenTreeIcon } from '../functions/icons'; import { ApiFormModalProps, useCreateApiFormModal, - useDeleteApiFormModal, - useEditApiFormModal + useDeleteApiFormModal } from '../hooks/UseForm'; import { apiUrl } from '../states/ApiState'; diff --git a/src/frontend/src/functions/icons.tsx b/src/frontend/src/functions/icons.tsx index 486cb43343..82e6816abf 100644 --- a/src/frontend/src/functions/icons.tsx +++ b/src/frontend/src/functions/icons.tsx @@ -1,5 +1,7 @@ import { + Icon, Icon123, + IconArrowBigDownLineFilled, IconArrowMerge, IconBinaryTree2, IconBookmarks, @@ -10,7 +12,7 @@ import { IconBusinessplan, IconCalendar, IconCalendarStats, - IconCategory, + IconCalendarTime, IconCheck, IconCircleCheck, IconCircleMinus, @@ -23,13 +25,14 @@ import { IconCornerUpRightDouble, IconCurrencyDollar, IconDots, - IconDotsCircleHorizontal, IconExternalLink, IconFileUpload, + IconFlag, IconFlagShare, IconGitBranch, IconGridDots, IconHash, + IconInfoCircle, IconLayersLinked, IconLink, IconList, @@ -48,12 +51,15 @@ import { IconPhoto, IconPrinter, IconProgressCheck, + IconProps, IconQrcode, IconQuestionMark, IconRulerMeasure, IconShoppingCart, IconShoppingCartHeart, + IconShoppingCartPlus, IconSitemap, + IconSquareXFilled, IconStack2, IconStatusChange, IconTag, @@ -65,6 +71,7 @@ import { IconTrash, IconTruck, IconTruckDelivery, + IconTruckReturn, IconUnlink, IconUser, IconUserStar, @@ -74,14 +81,6 @@ import { IconWorldCode, IconX } from '@tabler/icons-react'; -import { IconFlag } from '@tabler/icons-react'; -import { IconSquareXFilled } from '@tabler/icons-react'; -import { IconShoppingCartPlus } from '@tabler/icons-react'; -import { IconArrowBigDownLineFilled } from '@tabler/icons-react'; -import { IconTruckReturn } from '@tabler/icons-react'; -import { IconInfoCircle } from '@tabler/icons-react'; -import { IconCalendarTime } from '@tabler/icons-react'; -import { Icon, IconProps } from '@tabler/icons-react'; import React from 'react'; const icons = { diff --git a/src/frontend/src/pages/Index/Scan.tsx b/src/frontend/src/pages/Index/Scan.tsx index 5b10f6b2a1..d525000e70 100644 --- a/src/frontend/src/pages/Index/Scan.tsx +++ b/src/frontend/src/pages/Index/Scan.tsx @@ -399,7 +399,6 @@ function HistoryTable({ ); const rows = data.map((item) => { - const selected = selection.includes(item.id); return ( diff --git a/src/frontend/src/pages/Index/Settings/SystemSettings.tsx b/src/frontend/src/pages/Index/Settings/SystemSettings.tsx index ac4f1466a5..e61f93ff24 100644 --- a/src/frontend/src/pages/Index/Settings/SystemSettings.tsx +++ b/src/frontend/src/pages/Index/Settings/SystemSettings.tsx @@ -19,7 +19,6 @@ import { } from '@tabler/icons-react'; import { useMemo } from 'react'; -import { StylishText } from '../../../components/items/StylishText'; import { PanelGroup, PanelType } from '../../../components/nav/PanelGroup'; import { SettingsHeader } from '../../../components/nav/SettingsHeader'; import { GlobalSettingList } from '../../../components/settings/SettingList'; diff --git a/src/frontend/src/pages/company/ManufacturerPartDetail.tsx b/src/frontend/src/pages/company/ManufacturerPartDetail.tsx index 2e73faa2dc..147225b297 100644 --- a/src/frontend/src/pages/company/ManufacturerPartDetail.tsx +++ b/src/frontend/src/pages/company/ManufacturerPartDetail.tsx @@ -25,7 +25,6 @@ import { ApiEndpoints } from '../../enums/ApiEndpoints'; import { ModelType } from '../../enums/ModelType'; import { UserRoles } from '../../enums/Roles'; import { useManufacturerPartFields } from '../../forms/CompanyForms'; -import { getDetailUrl } from '../../functions/urls'; import { useCreateApiFormModal, useEditApiFormModal diff --git a/src/frontend/src/pages/purchasing/PurchaseOrderDetail.tsx b/src/frontend/src/pages/purchasing/PurchaseOrderDetail.tsx index b0485ed1ec..0d4289bfdc 100644 --- a/src/frontend/src/pages/purchasing/PurchaseOrderDetail.tsx +++ b/src/frontend/src/pages/purchasing/PurchaseOrderDetail.tsx @@ -1,5 +1,5 @@ import { t } from '@lingui/macro'; -import { Grid, Group, LoadingOverlay, Skeleton, Stack } from '@mantine/core'; +import { Grid, LoadingOverlay, Skeleton, Stack } from '@mantine/core'; import { IconDots, IconInfoCircle, @@ -32,7 +32,6 @@ import { ApiEndpoints } from '../../enums/ApiEndpoints'; import { ModelType } from '../../enums/ModelType'; import { UserRoles } from '../../enums/Roles'; import { usePurchaseOrderFields } from '../../forms/PurchaseOrderForms'; -import { getDetailUrl } from '../../functions/urls'; import { useCreateApiFormModal, useEditApiFormModal @@ -51,7 +50,6 @@ export default function PurchaseOrderDetail() { const { id } = useParams(); const user = useUserState(); - const navigate = useNavigate(); const { instance: order, diff --git a/src/frontend/src/pages/sales/ReturnOrderDetail.tsx b/src/frontend/src/pages/sales/ReturnOrderDetail.tsx index 8a52702aa9..ebe3c155d6 100644 --- a/src/frontend/src/pages/sales/ReturnOrderDetail.tsx +++ b/src/frontend/src/pages/sales/ReturnOrderDetail.tsx @@ -16,7 +16,6 @@ import { ItemDetailsGrid } from '../../components/details/ItemDetails'; import { ActionDropdown, CancelItemAction, - DeleteItemAction, DuplicateItemAction, EditItemAction } from '../../components/items/ActionDropdown'; @@ -44,7 +43,6 @@ export default function ReturnOrderDetail() { const { id } = useParams(); const user = useUserState(); - const navigate = useNavigate(); const { instance: order, diff --git a/src/frontend/src/pages/sales/SalesOrderDetail.tsx b/src/frontend/src/pages/sales/SalesOrderDetail.tsx index ca96e3f450..ec443701b0 100644 --- a/src/frontend/src/pages/sales/SalesOrderDetail.tsx +++ b/src/frontend/src/pages/sales/SalesOrderDetail.tsx @@ -19,7 +19,6 @@ import { ItemDetailsGrid } from '../../components/details/ItemDetails'; import { ActionDropdown, CancelItemAction, - DeleteItemAction, DuplicateItemAction, EditItemAction } from '../../components/items/ActionDropdown'; @@ -31,7 +30,6 @@ import { ApiEndpoints } from '../../enums/ApiEndpoints'; import { ModelType } from '../../enums/ModelType'; import { UserRoles } from '../../enums/Roles'; import { useSalesOrderFields } from '../../forms/SalesOrderForms'; -import { getDetailUrl } from '../../functions/urls'; import { useCreateApiFormModal, useEditApiFormModal @@ -49,7 +47,6 @@ export default function SalesOrderDetail() { const { id } = useParams(); const user = useUserState(); - const navigate = useNavigate(); const { instance: order, diff --git a/src/frontend/src/pages/stock/LocationDetail.tsx b/src/frontend/src/pages/stock/LocationDetail.tsx index 7f99949c30..d3230c22cf 100644 --- a/src/frontend/src/pages/stock/LocationDetail.tsx +++ b/src/frontend/src/pages/stock/LocationDetail.tsx @@ -15,7 +15,6 @@ import { ItemDetailsGrid } from '../../components/details/ItemDetails'; import { ActionDropdown, BarcodeActionDropdown, - DeleteItemAction, EditItemAction, LinkBarcodeAction, UnlinkBarcodeAction, diff --git a/src/frontend/src/tables/build/BuildOutputTable.tsx b/src/frontend/src/tables/build/BuildOutputTable.tsx index 657151909d..dec3deac37 100644 --- a/src/frontend/src/tables/build/BuildOutputTable.tsx +++ b/src/frontend/src/tables/build/BuildOutputTable.tsx @@ -1,10 +1,6 @@ import { t } from '@lingui/macro'; import { Group, Text } from '@mantine/core'; -import { - IconCircleCheck, - IconCircleX, - IconExclamationCircle -} from '@tabler/icons-react'; +import { IconCircleCheck, IconCircleX } from '@tabler/icons-react'; import { useQuery } from '@tanstack/react-query'; import { useCallback, useMemo } from 'react'; diff --git a/src/frontend/src/tables/company/CompanyTable.tsx b/src/frontend/src/tables/company/CompanyTable.tsx index c364258412..0b99c22da4 100644 --- a/src/frontend/src/tables/company/CompanyTable.tsx +++ b/src/frontend/src/tables/company/CompanyTable.tsx @@ -1,6 +1,5 @@ import { t } from '@lingui/macro'; import { Group, Text } from '@mantine/core'; -import { access } from 'fs'; import { useCallback, useMemo, useState } from 'react'; import { useNavigate } from 'react-router-dom'; diff --git a/src/frontend/src/tables/part/ParametricPartTable.tsx b/src/frontend/src/tables/part/ParametricPartTable.tsx index ec53ab9ba7..9e9f276a94 100644 --- a/src/frontend/src/tables/part/ParametricPartTable.tsx +++ b/src/frontend/src/tables/part/ParametricPartTable.tsx @@ -1,5 +1,5 @@ import { t } from '@lingui/macro'; -import { ActionIcon, Group, Text, Tooltip } from '@mantine/core'; +import { ActionIcon, Group, Tooltip } from '@mantine/core'; import { useHover } from '@mantine/hooks'; import { IconEdit } from '@tabler/icons-react'; import { useQuery } from '@tanstack/react-query'; @@ -246,35 +246,6 @@ export default function ParametricPartTable({ return [...partColumns, ...parameterColumns]; }, [parameterColumns]); - // Callback when a parameter cell is clicked - either edit or add a new parameter - const handleCellClick = useCallback( - (record: any, column: any) => { - let template_id = column?.extra?.template; - - if (!template_id) { - return; - } - - setSelectedPart(record.pk); - setSelectedTemplate(template_id); - - // Find the associated parameter - let parameter = record?.parameters?.find( - (p: any) => p.template == template_id - ); - - if (parameter) { - // Parameter exists - open edit dialog - setSelectedParameter(parameter.pk); - editParameter.open(); - } else { - // Parameter does not exist - create it! - addParameter.open(); - } - }, - [user] - ); - return ( <> {addParameter.modal} diff --git a/src/frontend/src/tables/part/PartCategoryTemplateTable.tsx b/src/frontend/src/tables/part/PartCategoryTemplateTable.tsx index 4079a1e9f4..34e7983ee7 100644 --- a/src/frontend/src/tables/part/PartCategoryTemplateTable.tsx +++ b/src/frontend/src/tables/part/PartCategoryTemplateTable.tsx @@ -1,7 +1,6 @@ import { t } from '@lingui/macro'; import { Group, Text } from '@mantine/core'; import { useCallback, useMemo, useState } from 'react'; -import { set } from 'react-hook-form'; import { AddItemButton } from '../../components/buttons/AddItemButton'; import { ApiFormFieldSet } from '../../components/forms/fields/ApiFormField'; diff --git a/src/frontend/src/tables/part/PartTable.tsx b/src/frontend/src/tables/part/PartTable.tsx index 1418f8fc5f..8407aadf2d 100644 --- a/src/frontend/src/tables/part/PartTable.tsx +++ b/src/frontend/src/tables/part/PartTable.tsx @@ -10,7 +10,6 @@ import { ModelType } from '../../enums/ModelType'; import { UserRoles } from '../../enums/Roles'; import { usePartFields } from '../../forms/PartForms'; import { shortenString } from '../../functions/tables'; -import { getDetailUrl } from '../../functions/urls'; import { useCreateApiFormModal } from '../../hooks/UseForm'; import { useTable } from '../../hooks/UseTable'; import { apiUrl } from '../../states/ApiState'; @@ -269,7 +268,6 @@ export function PartListTable({ props }: { props: InvenTreeTableProps }) { const table = useTable('part-list'); const user = useUserState(); - const navigate = useNavigate(); const newPart = useCreateApiFormModal({ url: ApiEndpoints.part_list, diff --git a/src/frontend/src/tables/purchasing/SupplierPartTable.tsx b/src/frontend/src/tables/purchasing/SupplierPartTable.tsx index 70de5f778c..3a6af2b841 100644 --- a/src/frontend/src/tables/purchasing/SupplierPartTable.tsx +++ b/src/frontend/src/tables/purchasing/SupplierPartTable.tsx @@ -8,7 +8,6 @@ import { ApiEndpoints } from '../../enums/ApiEndpoints'; import { ModelType } from '../../enums/ModelType'; import { UserRoles } from '../../enums/Roles'; import { useSupplierPartFields } from '../../forms/CompanyForms'; -import { openDeleteApiForm, openEditApiForm } from '../../functions/forms'; import { useCreateApiFormModal, useDeleteApiFormModal, diff --git a/src/frontend/tests/pages/pui_index.spec.ts b/src/frontend/tests/pages/pui_index.spec.ts index 287d81e6b8..cddccd67c6 100644 --- a/src/frontend/tests/pages/pui_index.spec.ts +++ b/src/frontend/tests/pages/pui_index.spec.ts @@ -1,5 +1,4 @@ import { test } from '../baseFixtures.js'; -import { baseUrl } from '../defaults.js'; import { doQuickLogin } from '../login.js'; const newPartName = 'UITESTIN123'; diff --git a/src/frontend/tests/pui_basic.spec.ts b/src/frontend/tests/pui_basic.spec.ts index eadb2187b4..f56004036d 100644 --- a/src/frontend/tests/pui_basic.spec.ts +++ b/src/frontend/tests/pui_basic.spec.ts @@ -1,5 +1,5 @@ import { expect, test } from './baseFixtures.js'; -import { baseUrl, loginUrl, logoutUrl, user } from './defaults.js'; +import { baseUrl, user } from './defaults.js'; import { doLogin, doQuickLogin } from './login.js'; test('PUI - Basic Login Test', async ({ page }) => { diff --git a/src/frontend/tests/pui_general.spec.ts b/src/frontend/tests/pui_general.spec.ts index 3dead1ce79..eb688a37ba 100644 --- a/src/frontend/tests/pui_general.spec.ts +++ b/src/frontend/tests/pui_general.spec.ts @@ -1,4 +1,4 @@ -import { expect, test } from './baseFixtures.js'; +import { test } from './baseFixtures.js'; import { baseUrl } from './defaults.js'; import { doQuickLogin } from './login.js'; diff --git a/src/frontend/tests/pui_stock.spec.ts b/src/frontend/tests/pui_stock.spec.ts index 3b00340af8..cf6ea247f5 100644 --- a/src/frontend/tests/pui_stock.spec.ts +++ b/src/frontend/tests/pui_stock.spec.ts @@ -1,5 +1,5 @@ -import { expect, test } from './baseFixtures.js'; -import { baseUrl, user } from './defaults.js'; +import { test } from './baseFixtures.js'; +import { baseUrl } from './defaults.js'; import { doQuickLogin } from './login.js'; test('PUI - Stock', async ({ page }) => {