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:
@@ -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();
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user