mirror of
https://github.com/inventree/InvenTree.git
synced 2026-05-06 17:53:44 +00:00
Fix complete_sales_order_shipment task (#11525)
* Fix complete_sales_order_shipment task - Perform allocation *before* marking shipment as complete - Ensure task is not marked as complete before it is actually done * Add unit test * Provide task status tracking for shipment completion * Add integration testing * Address unit test issues * Bump API version * Enhance playwright test
This commit is contained in:
@@ -262,19 +262,22 @@ test('Parts - Details', async ({ browser }) => {
|
||||
await page.getByText('Allocated to Sales Orders').waitFor();
|
||||
await page.getByText('Can Build').waitFor();
|
||||
|
||||
await page.getByText('0 / 10').waitFor();
|
||||
// The "allocated to sales order" quantity may vary, based on other tests
|
||||
await page.getByText(/0 \/ \d+/).waitFor();
|
||||
|
||||
// Depending on the state of other tests, the "In Production" value may vary
|
||||
// This could be either 4 / 49, or 5 / 49
|
||||
await page.getByText(/[4|5] \/ \d+/).waitFor();
|
||||
|
||||
// Badges
|
||||
await page.getByText('Required: 10').waitFor();
|
||||
await page.getByText(/Required: \d+/).waitFor();
|
||||
await page.getByText('No Stock').waitFor();
|
||||
await page.getByText(/In Production: [4|5]/).waitFor();
|
||||
|
||||
await page.getByText('Creation Date').waitFor();
|
||||
await page.getByText('2022-04-29').waitFor();
|
||||
|
||||
await page.getByText('Latest Serial Number').waitFor();
|
||||
});
|
||||
|
||||
test('Parts - Requirements', async ({ browser }) => {
|
||||
|
||||
Reference in New Issue
Block a user