2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 04:55:44 +00:00

[PUI] Add "index" page for build orders (#8287)

* Add "index" page for build orders

- Make consistent with other pages
- Allow plugin panels here
- Prepare for future development

* Rearrange URLs for "manufacturing"

- Provide same format as other order types
- Allow for other sub-pages under "manufacturing" in the future

* Fix breadcrumbs

* Adjust playwright tests
This commit is contained in:
Oliver
2024-10-15 23:57:30 +11:00
committed by GitHub
parent fb9c117e37
commit e808fad98d
8 changed files with 41 additions and 16 deletions

View File

@ -8,7 +8,7 @@ test('Pages - Build Order', async ({ page }) => {
await page.goto(`${baseUrl}/part/`);
// Navigate to the correct build order
await page.getByRole('tab', { name: 'Build', exact: true }).click();
await page.getByRole('tab', { name: 'Manufacturing', exact: true }).click();
// We have now loaded the "Build Order" table. Check for some expected texts
await page.getByText('On Hold').first().waitFor();
@ -30,7 +30,7 @@ test('Pages - Build Order', async ({ page }) => {
await page.getByRole('button', { name: 'Cancel' }).click();
// Back to the build list
await page.getByLabel('breadcrumb-0-build-orders').click();
await page.getByLabel('breadcrumb-0-manufacturing').click();
// Load a different build order
await page.getByRole('cell', { name: 'BO0011' }).click();
@ -88,7 +88,7 @@ test('Pages - Build Order - Build Outputs', async ({ page }) => {
await page.goto(`${baseUrl}/part/`);
// Navigate to the correct build order
await page.getByRole('tab', { name: 'Build', exact: true }).click();
await page.getByRole('tab', { name: 'Manufacturing', exact: true }).click();
// We have now loaded the "Build Order" table. Check for some expected texts
await page.getByText('On Hold').first().waitFor();

View File

@ -24,7 +24,7 @@ test('Tables - Filters', async ({ page }) => {
await doQuickLogin(page);
// Head to the "build order list" page
await page.goto(`${baseUrl}/build/`);
await page.goto(`${baseUrl}/manufacturing/index/`);
await setFilter(page, 'Status', 'Complete');
await setFilter(page, 'Responsible', 'allaccess');