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

[PUI] Fix stock actions (#8569)

* Fix useAssignStockItems

- Only allow "salable" parts

* Assign item to customer

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

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();