mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-10 19:08:01 +00:00
Consumable fix (#13120)
* Disable "consumable" attribute on PartDetail page * Update playwright tests
This commit is contained in:
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' }
|
||||
];
|
||||
|
||||
|
||||
@@ -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 ({
|
||||
|
||||
Reference in new issue
Block a user