mirror of
https://github.com/inventree/InvenTree.git
synced 2026-06-06 00:44:25 +00:00
[UI] Can build (#12043)
* Fix for BuildDetail * Update playwright tests * update playwright Ref: https://github.com/microsoft/playwright/issues/40998 * Fix hooks
This commit is contained in:
@@ -331,7 +331,7 @@ export default function BuildDetail() {
|
||||
name: 'can_build',
|
||||
unit: build.part_detail?.units,
|
||||
label: t`Can Build`,
|
||||
hidden: partRequirementsQuery.isFetching
|
||||
hidden: partRequirements?.can_build === undefined
|
||||
},
|
||||
{
|
||||
type: 'progressbar',
|
||||
@@ -454,12 +454,7 @@ export default function BuildDetail() {
|
||||
<DetailsTable fields={br} item={data} />
|
||||
</ItemDetailsGrid>
|
||||
);
|
||||
}, [
|
||||
build,
|
||||
instanceQuery,
|
||||
partRequirements,
|
||||
partRequirementsQuery.isFetching
|
||||
]);
|
||||
}, [build, instanceQuery, partRequirements, partRequirementsQuery]);
|
||||
|
||||
const buildPanels: PanelType[] = useMemo(() => {
|
||||
return [
|
||||
@@ -597,6 +592,7 @@ export default function BuildDetail() {
|
||||
build,
|
||||
id,
|
||||
user,
|
||||
partRequirements,
|
||||
buildStatus,
|
||||
globalSettings,
|
||||
showChildBuilds,
|
||||
|
||||
@@ -45,8 +45,12 @@ test('Build Order - Basic Tests', async ({ browser }) => {
|
||||
// Load a particular build order
|
||||
await page.getByRole('cell', { name: 'BO0017' }).click();
|
||||
|
||||
await loadTab(page, 'Build Details');
|
||||
|
||||
// This build order should be "on hold"
|
||||
await page.getByText('On Hold').first().waitFor();
|
||||
await page.getByText('Can Build').first().waitFor();
|
||||
await page.getByText('Completed Outputs').first().waitFor();
|
||||
|
||||
// Edit the build order (via keyboard shortcut)
|
||||
await page.keyboard.press('Control+E');
|
||||
|
||||
Reference in New Issue
Block a user