[PUI] Fix stock actions (#8569)

* Fix useAssignStockItems

- Only allow "salable" parts

* Assign item to customer

* Adjust playwright tests
This commit is contained in:
Oliver authored and GitHub committed 2024-11-27 15:01:07 +11:00
1 parent af39189e7e
commit 81e87a65e2
4 files changed
+44 -13

No files matched your search

+1 -1
View File
@@ -189,7 +189,7 @@ test('Stock - Stock Actions', async ({ page }) => {
await page.getByRole('button', { name: 'Cancel' }).click();
// Find an item which has been sent to a customer
await page.goto(`${baseUrl}/stock/item/1012/details`);
await page.goto(`${baseUrl}/stock/item/1014/details`);
await page.getByText('Batch Code: 2022-11-12').waitFor();
await page.getByText('Unavailable').waitFor();
await page.getByLabel('action-menu-stock-operations').click();