mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	[WIP] Background reports (#9199)
* Update report generation progress * Add shim task for offloading report printing * Cleanup * Add detail endpoints for label and report outputs * Display report printing progress in UI * Implement similar for label printing * Reduce output for CI * Add plugin slug * Bump API version * Ensure it works with machine printing * Fix null comparison * Fix SKU link * Update playwright tests * Massively reduce log output when printing
This commit is contained in:
		| @@ -41,9 +41,7 @@ test('Label Printing', async ({ page }) => { | ||||
|   await page.getByRole('button', { name: 'Print', exact: true }).isEnabled(); | ||||
|   await page.getByRole('button', { name: 'Print', exact: true }).click(); | ||||
|  | ||||
|   await page.locator('#form-success').waitFor(); | ||||
|   await page.getByText('Label printing completed').waitFor(); | ||||
|  | ||||
|   await page.getByText('Printing completed successfully').first().waitFor(); | ||||
|   await page.context().close(); | ||||
| }); | ||||
|  | ||||
| @@ -75,12 +73,10 @@ test('Report Printing', async ({ page }) => { | ||||
|   await page.waitForTimeout(100); | ||||
|  | ||||
|   // Submit the print form (should result in success) | ||||
|   await page.getByRole('button', { name: 'Generate', exact: true }).isEnabled(); | ||||
|   await page.getByRole('button', { name: 'Generate', exact: true }).click(); | ||||
|  | ||||
|   await page.locator('#form-success').waitFor(); | ||||
|   await page.getByText('Report printing completed').waitFor(); | ||||
|   await page.getByRole('button', { name: 'Print', exact: true }).isEnabled(); | ||||
|   await page.getByRole('button', { name: 'Print', exact: true }).click(); | ||||
|  | ||||
|   await page.getByText('Printing completed successfully').first().waitFor(); | ||||
|   await page.context().close(); | ||||
| }); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user