2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-11-14 03:46:44 +00:00

Consolidate data actions for BOM table (#10763)

* Consolidate data actions for BOM table

* Adjust playwright tests
This commit is contained in:
Oliver
2025-11-04 12:02:00 +11:00
committed by GitHub
parent 901846272b
commit 8e20bc53db
3 changed files with 45 additions and 29 deletions

View File

@@ -175,8 +175,12 @@ test('Part - Editing', async ({ browser }) => {
test('Parts - Locking', async ({ browser }) => {
const page = await doCachedLogin(browser, { url: 'part/104/bom' });
await loadTab(page, 'Bill of Materials');
await page.getByLabel('action-button-add-bom-item').waitFor();
await page
.getByRole('button', { name: 'action-menu-add-bom-items' })
.waitFor();
await loadTab(page, 'Parameters');
await page.getByLabel('action-button-add-parameter').waitFor();

View File

@@ -80,8 +80,13 @@ test('Importing - BOM', async ({ browser }) => {
url: 'part/109/bom'
});
// Open the BOM importer wizard
await page.getByRole('button', { name: 'action-menu-add-bom-items' }).click();
await page
.getByRole('button', { name: 'action-button-import-bom-data' })
.getByRole('menuitem', {
name: 'action-menu-add-bom-items-import-from-file'
})
.click();
// Select BOM file fixture for import