Consumable fix (#13120)

* Disable "consumable" attribute on PartDetail page

* Update playwright tests
This commit is contained in:
Oliver authored and GitHub committed 2026-10-28 14:54:28 +11:00
1 parent 60db8a924e
commit c1683db714
2 files changed
+13

No files matched your search

@@ -266,6 +266,7 @@ export function PartDetailsPanel({
label: t`Saleable Part`
},
{ type: 'boolean', name: 'virtual', label: t`Virtual Part` },
{ type: 'boolean', name: 'consumable', label: t`Consumable Part` },
{ type: 'boolean', name: 'starred', label: t`Subscribed`, icon: 'bell' }
];
+12
View File
@@ -627,6 +627,18 @@ test('Parts - Details', async ({ browser }) => {
await page.getByText('2022-04-29').waitFor();
await page.getByText('Latest Serial Number').waitFor();
// Non-consumable part
await expect(
page.getByRole('row', { name: 'Consumable Part' })
).toContainText('No');
// Consumable part
await navigate(page, 'part/921/details');
await expect(
page.getByRole('row', { name: 'Consumable Part' })
).toContainText('Yes');
});
test('Parts - Details - Upload image modal accepts pasted clipboard image', async ({