mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	[Documentation] Remove package credits (#8811)
* Remove hard-coded credits from docs - Extract *actual* package credits - Auto-build into docs * Include URLs when generating python license data * Update readthedocs process * Better URL extraction * Adjust build process for RTD * Spelling fixes * Install node and yarn * Command fix * Improved library sorting * Improved error message * Remove credits.md * Cleanup * Further cleanup * Tweak playwright test * Handle uncaught exception in fetchIcons * Fix for CORS settings in playwright testing * Enhance login check * Fix for barcode test --------- Co-authored-by: Matthias Mair <code@mjmair.com>
This commit is contained in:
		| @@ -34,6 +34,7 @@ export const doQuickLogin = async ( | ||||
|   await page.goto(`${url}/login/?login=${username}&password=${password}`); | ||||
|   await page.waitForURL('**/platform/home'); | ||||
|  | ||||
|   await page.getByLabel('navigation-menu').waitFor(); | ||||
|   await page.getByText(/InvenTree Demo Server -/).waitFor(); | ||||
| }; | ||||
|  | ||||
|   | ||||
| @@ -35,8 +35,24 @@ test('Purchase Orders - Barcodes', async ({ page }) => { | ||||
|   await page.getByRole('img', { name: 'QR Code' }).waitFor(); | ||||
|   await page.getByRole('banner').getByRole('button').click(); | ||||
|  | ||||
|   // Link to barcode | ||||
|   // Un-link barcode if a link exists | ||||
|   await page.getByLabel('action-menu-barcode-actions').click(); | ||||
|   await page.waitForTimeout(100); | ||||
|  | ||||
|   if ( | ||||
|     await page | ||||
|       .getByLabel('action-menu-barcode-actions-unlink-barcode') | ||||
|       .isVisible() | ||||
|   ) { | ||||
|     await page.getByLabel('action-menu-barcode-actions-unlink-barcode').click(); | ||||
|     await page.getByRole('button', { name: 'Unlink Barcode' }).click(); | ||||
|     await page.waitForTimeout(100); | ||||
|   } else { | ||||
|     await page.keyboard.press('Escape'); | ||||
|   } | ||||
|  | ||||
|   // Link to barcode | ||||
|   await page.getByLabel('action-menu-barcode-actions', { exact: true }).click(); | ||||
|   await page.getByLabel('action-menu-barcode-actions-link-barcode').click(); | ||||
|  | ||||
|   await page.getByLabel('barcode-input-scanner').click(); | ||||
| @@ -49,7 +65,7 @@ test('Purchase Orders - Barcodes', async ({ page }) => { | ||||
|   await page.getByRole('button', { name: 'Issue Order' }).waitFor(); | ||||
|  | ||||
|   // Ensure we can scan back to this page, with the associated barcode | ||||
|   await page.goto(`${baseUrl}/home`); | ||||
|   await page.goto(`${baseUrl}/`); | ||||
|   await page.waitForTimeout(250); | ||||
|   await page.getByRole('button', { name: 'Open Barcode Scanner' }).click(); | ||||
|   await page.getByPlaceholder('Enter barcode data').fill('1234567890'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user