2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-05-06 17:53:44 +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
+17 -6
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