2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-02 18:11:42 +00:00

Import fix 2 (#9992)

* Fix return types

* Add getStatusCodeLabel func

* Fix logic for import session drawer

- Properly re-fetch session data
- Rendering improvements

* Fix icon

* API permission fixes

* Enhanced playwright testing

* Fix playwright tests

* Tweak playwright tests

* Remove unused var

* Tweak playwright tests
This commit is contained in:
Oliver
2025-07-09 23:32:00 +10:00
committed by GitHub
parent 7ff2ca914a
commit c6166d7c4a
10 changed files with 153 additions and 90 deletions

View File

@@ -1,6 +1,7 @@
import { test } from '../baseFixtures';
import {
clearTableFilters,
clickOnRowMenu,
getRowFromCell,
loadTab,
navigate
@@ -89,17 +90,15 @@ test('Parts - BOM', async ({ browser }) => {
name: 'Small plastic enclosure, black',
exact: true
});
await cell.click({ button: 'right' });
await clickOnRowMenu(cell);
// Check for expected context menu actions
await page.getByRole('button', { name: 'Edit', exact: true }).waitFor();
await page.getByRole('button', { name: 'Delete', exact: true }).waitFor();
await page
.getByRole('button', { name: 'View details', exact: true })
.waitFor();
await page.getByRole('menuitem', { name: 'Edit', exact: true }).waitFor();
await page.getByRole('menuitem', { name: 'Delete', exact: true }).waitFor();
await page
.getByRole('button', { name: 'Edit Substitutes', exact: true })
.getByRole('menuitem', { name: 'Edit Substitutes', exact: true })
.click();
await page.getByText('Edit BOM Substitutes').waitFor();
await page.getByText('1551ACLR').first().waitFor();