2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-04-15 07:48:51 +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:
Matthias Mair
2026-03-12 02:14:36 +01:00
committed by GitHub
parent a964d6682e
commit 57949b69e0
9 changed files with 1580 additions and 1864 deletions

View File

@@ -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://') &&

View File

@@ -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();

View File

@@ -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

View File

@@ -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();

View File

@@ -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();