2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-06 12:01:41 +00:00

[bug] Incomplete output print (#10130)

* Enable printing actions for build output table

* Add playwright tests
This commit is contained in:
Oliver
2025-08-05 12:02:22 +10:00
committed by GitHub
parent fbb7707076
commit 3e74ab5a85
2 changed files with 22 additions and 0 deletions

View File

@@ -721,6 +721,7 @@ export default function BuildOutputTable({
},
enableLabels: true,
enableReports: true,
modelType: ModelType.stockitem,
dataFormatter: formatRecords,
tableFilters: tableFilters,
tableActions: tableActions,

View File

@@ -161,6 +161,27 @@ test('Build Order - Build Outputs', async ({ browser }) => {
await page.getByRole('cell', { name: 'BO0011' }).click();
await loadTab(page, 'Incomplete Outputs');
// Check the "printing" actions for the selected outputs
await page.getByRole('checkbox', { name: 'Select all records' }).click();
await page
.getByRole('tabpanel', { name: 'Incomplete Outputs' })
.getByLabel('action-menu-printing-actions')
.click();
await page
.getByRole('menuitem', {
name: 'action-menu-printing-actions-print-labels'
})
.waitFor();
await page
.getByRole('menuitem', {
name: 'action-menu-printing-actions-print-reports'
})
.click();
await page.getByRole('button', { name: 'Print', exact: true }).click();
await page.getByText('Errors exist for one or more form fields').waitFor();
await page.getByRole('button', { name: 'Cancel', exact: true }).click();
await page.getByRole('checkbox', { name: 'Select all records' }).click();
// Create a new build output
await page.getByLabel('action-button-add-build-output').click();
await page.getByLabel('number-field-quantity').fill('5');