mirror of
https://github.com/inventree/InvenTree.git
synced 2026-03-12 15:13:34 +00:00
chore(frontend): resolution bump (#11465)
* chore(frontend): resolution bump * bump nyc * bump vite-plugin-istanbul * bump @codecov/vite-plugin * bump @lingui * fix typing * fix tests * make more robust * fix @codemirror * fix another switch * add more "give" to test * ifnore demo dataset * fix assert * revert test change --------- Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import type { Icon, IconProps } from '@tabler/icons-react';
|
||||
import type { IconCircle } from '@tabler/icons-react';
|
||||
|
||||
export type TablerIconType = React.ForwardRefExoticComponent<
|
||||
Omit<IconProps, 'ref'> & React.RefAttributes<Icon>
|
||||
>;
|
||||
export type TablerIconType = typeof IconCircle;
|
||||
|
||||
export type InvenTreeIconType = {
|
||||
[key: string]: TablerIconType;
|
||||
|
||||
@@ -40,13 +40,13 @@
|
||||
"compile": "lingui compile --typescript"
|
||||
},
|
||||
"dependencies": {
|
||||
"@codemirror/autocomplete": "6.18.7",
|
||||
"@codemirror/lang-liquid": "6.3.0",
|
||||
"@codemirror/language": "6.11.3",
|
||||
"@codemirror/lint": "6.8.5",
|
||||
"@codemirror/search": "6.5.11",
|
||||
"@codemirror/state": "6.5.2",
|
||||
"@codemirror/theme-one-dark": "6.1.3",
|
||||
"@codemirror/autocomplete": "^6.20.1",
|
||||
"@codemirror/lang-liquid": "^6.3.2",
|
||||
"@codemirror/language": "^6.12.2",
|
||||
"@codemirror/lint": "^6.9.5",
|
||||
"@codemirror/search": "^6.6.0",
|
||||
"@codemirror/state": "^6.5.4",
|
||||
"@codemirror/theme-one-dark": "^6.1.3",
|
||||
"@codemirror/view": "6.38.2",
|
||||
"@emotion/react": "^11.13.3",
|
||||
"@fortawesome/fontawesome-svg-core": "^7.0.0",
|
||||
@@ -58,8 +58,8 @@
|
||||
"@fullcalendar/interaction": "^6.1.15",
|
||||
"@fullcalendar/react": "^6.1.15",
|
||||
"@github/webauthn-json": "^2.1.1",
|
||||
"@lingui/core": "^5.3.1",
|
||||
"@lingui/react": "^5.3.1",
|
||||
"@lingui/core": "^5.9.2",
|
||||
"@lingui/react": "^5.9.2",
|
||||
"@mantine/carousel": "^8.2.7",
|
||||
"@mantine/charts": "^8.2.7",
|
||||
"@mantine/core": "^8.2.7",
|
||||
@@ -76,7 +76,7 @@
|
||||
"@tabler/icons-react": "^3.17.0",
|
||||
"@tanstack/react-query": "^5.56.2",
|
||||
"@uiw/codemirror-theme-vscode": "4.25.1",
|
||||
"@uiw/react-codemirror": "4.25.1",
|
||||
"@uiw/react-codemirror": "^4.25.7",
|
||||
"@uiw/react-split": "^5.9.3",
|
||||
"@vanilla-extract/css": "^1.17.1",
|
||||
"axios": "^1.8.4",
|
||||
@@ -109,10 +109,10 @@
|
||||
"@babel/preset-react": "^7.26.3",
|
||||
"@babel/preset-typescript": "^7.27.0",
|
||||
"@babel/runtime": "^7.27.0",
|
||||
"@codecov/vite-plugin": "^1.9.0",
|
||||
"@lingui/babel-plugin-lingui-macro": "^5.3.1",
|
||||
"@lingui/cli": "^5.3.1",
|
||||
"@lingui/macro": "^5.3.1",
|
||||
"@codecov/vite-plugin": "^1.9.1",
|
||||
"@lingui/babel-plugin-lingui-macro": "^5.9.2",
|
||||
"@lingui/cli": "^5.9.2",
|
||||
"@lingui/macro": "^5.9.2",
|
||||
"@playwright/test": "1.56.0",
|
||||
"@types/node": "^24.3.0",
|
||||
"@types/qrcode": "^1.5.5",
|
||||
@@ -124,7 +124,7 @@
|
||||
"@vanilla-extract/vite-plugin": "^5.1.1",
|
||||
"@vitejs/plugin-react": "^5.0.2",
|
||||
"babel-plugin-macros": "^3.1.0",
|
||||
"nyc": "^17.1.0",
|
||||
"nyc": "^18.0.0",
|
||||
"otpauth": "^9.4.1",
|
||||
"path": "^0.12.7",
|
||||
"rollup": "^4.0.0",
|
||||
@@ -134,6 +134,6 @@
|
||||
"vite-plugin-babel-macros": "^1.0.6",
|
||||
"vite-plugin-dts": "^4.5.3",
|
||||
"vite-plugin-externals": "^0.6.2",
|
||||
"vite-plugin-istanbul": "^6.0.2"
|
||||
"vite-plugin-istanbul": "^7.2.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -242,7 +242,7 @@ export function PartStocktakePanel({ partId }: Readonly<{ partId: number }>) {
|
||||
rightYAxisLabel={t`Stock Value`}
|
||||
tooltipProps={{
|
||||
content: ({ label, payload }) => (
|
||||
<ChartTooltip label={label} payload={payload} />
|
||||
<ChartTooltip label={label} payload={payload as any} />
|
||||
)
|
||||
}}
|
||||
yAxisProps={{
|
||||
|
||||
@@ -78,6 +78,7 @@ export const test = baseTest.extend({
|
||||
!url.includes('/api/barcode/') &&
|
||||
!url.includes('/favicon.ico') &&
|
||||
!url.startsWith('https://api.github.com/repos/inventree') &&
|
||||
!url.startsWith('https://github.com/inventree/demo-data') &&
|
||||
!url.includes('/api/news/') &&
|
||||
!url.includes('/api/notifications/') &&
|
||||
!url.startsWith('chrome://') &&
|
||||
|
||||
@@ -605,10 +605,7 @@ test('Build Order - Tracked Outputs', async ({ browser }) => {
|
||||
.getByLabel('text-field-serial_numbers', { exact: true })
|
||||
.fill('16');
|
||||
await page
|
||||
.locator('label')
|
||||
.filter({ hasText: 'Auto Allocate Serial' })
|
||||
.locator('div')
|
||||
.first()
|
||||
.getByRole('switch', { name: 'boolean-field-auto_allocate' })
|
||||
.click();
|
||||
await page.getByRole('button', { name: 'Submit' }).click();
|
||||
|
||||
|
||||
@@ -559,6 +559,22 @@ test('Parts - Parameters by Category', async ({ browser }) => {
|
||||
test('Parts - Parameters', async ({ browser }) => {
|
||||
const page = await doCachedLogin(browser, { url: 'part/69/parameters' });
|
||||
|
||||
// check that "is polarized" parameter is not already present - if it is, delete it before proceeding with the rest of the test
|
||||
await page
|
||||
.getByText('Is this part polarized?')
|
||||
.waitFor({ state: 'detached', timeout: 1000 })
|
||||
.catch(async () => {
|
||||
const cell = await page.getByRole('cell', {
|
||||
name: 'Is this part polarized?'
|
||||
});
|
||||
const row = await getRowFromCell(cell);
|
||||
await row.getByLabel(/row-action-menu-/i).click();
|
||||
await page.getByRole('menuitem', { name: 'Delete' }).click();
|
||||
|
||||
await page.getByRole('button', { name: 'Delete', exact: true }).click();
|
||||
await page.getByText('No records found').first().waitFor();
|
||||
});
|
||||
|
||||
// Create a new template
|
||||
await page
|
||||
.getByRole('button', { name: 'action-menu-add-parameters' })
|
||||
@@ -599,12 +615,7 @@ test('Parts - Parameters', async ({ browser }) => {
|
||||
await page.getByRole('menuitem', { name: 'Edit' }).click();
|
||||
|
||||
// Toggle false to true
|
||||
await page
|
||||
.locator('label')
|
||||
.filter({ hasText: 'DataParameter Value' })
|
||||
.locator('div')
|
||||
.first()
|
||||
.click();
|
||||
await page.getByRole('switch', { name: 'boolean-field-data' }).click();
|
||||
await page.getByRole('button', { name: 'Submit' }).click();
|
||||
|
||||
// Finally, delete the parameter
|
||||
|
||||
@@ -16,10 +16,7 @@ test('Importing - Admin Center', async ({ browser }) => {
|
||||
await fileInput.setInputFiles('./tests/fixtures/bom_data.csv');
|
||||
|
||||
await page
|
||||
.locator('label')
|
||||
.filter({ hasText: 'Update Existing RecordsIf' })
|
||||
.locator('div')
|
||||
.first()
|
||||
.getByRole('switch', { name: 'boolean-field-update_records' })
|
||||
.click();
|
||||
|
||||
await page.getByRole('button', { name: 'Submit' }).click();
|
||||
|
||||
@@ -37,10 +37,7 @@ test('Permissions - Admin', async ({ browser }) => {
|
||||
await page.getByRole('button', { name: 'Submit' }).click();
|
||||
await page.getByText("['This password is too short").waitFor();
|
||||
await page
|
||||
.locator('label')
|
||||
.filter({ hasText: 'Override warning' })
|
||||
.locator('div')
|
||||
.first()
|
||||
.getByRole('switch', { name: 'boolean-field-override_warning' })
|
||||
.click();
|
||||
await page.getByRole('button', { name: 'Submit' }).click();
|
||||
await page.getByText('Password updated').click();
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user