mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 05:05:42 +00:00 
			
		
		
		
	[plugin] Auto issue orders (#9565)
* Add builtin plugin for auto-issuing orders * Add plugin to auto-issue orders * Add placeholder documentation * Fix typo * Adds image macro - To replace img.html - includes checking if file exists * Fix tooltips * More docs * Adjust plugin settings filters * docs * More docs * More docs * Updates * Less restrictive URL checking * Refactor build order page * Fix typo * Allow 429 * Debug output * More debug * Construct assets dir * Cleanup * Update docs README * Refactoring more pages * Fix image link * Fix SSO settings * Add hook to check for missing settings - Ensure that all settings are documented! * Add missing user settings * Update docstring * Tweak SSO.md * Image updates * More updates * Tweaks * Exclude orders without a target_date * Fix for issuing build orders * Further refactoring * Fixes * Image refactoring * More refactoring * More refactoring * Refactor app images * Fix pathing issues * Suppress some openapidocs warnings in logs (much easier to debug docs build issues) * Fix image reference * Reduce error messages * Fix image links * Fix image links * Reduce docs log output * Ensure settings are loaded before displaying them * Fix for UI test * Fix unit test * Test tweaks
This commit is contained in:
		| @@ -128,11 +128,13 @@ test('Part - Editing', async ({ browser }) => { | ||||
|  | ||||
|   // Test URL validation | ||||
|   await page.getByLabel('text-field-link').fill('htxp-??QQQ++'); | ||||
|   await page.waitForTimeout(200); | ||||
|   await page.getByRole('button', { name: 'Submit' }).click(); | ||||
|   await page.getByText('Enter a valid URL.').waitFor(); | ||||
|  | ||||
|   // Fill with an empty URL | ||||
|   await page.getByLabel('text-field-link').fill(''); | ||||
|   await page.waitForTimeout(200); | ||||
|   await page.getByRole('button', { name: 'Submit' }).click(); | ||||
|   await page.getByText('Item Updated').waitFor(); | ||||
| }); | ||||
|   | ||||
| @@ -41,7 +41,10 @@ test('Plugins - Settings', async ({ browser, request }) => { | ||||
|  | ||||
|   // Edit numerical value | ||||
|   await page.getByLabel('edit-setting-NUMERICAL_SETTING').click(); | ||||
|   const originalValue = await page.getByLabel('number-field-value').innerText(); | ||||
|   const originalValue = await page | ||||
|     .getByLabel('number-field-value') | ||||
|     .inputValue(); | ||||
|  | ||||
|   await page | ||||
|     .getByLabel('number-field-value') | ||||
|     .fill(originalValue == '999' ? '1000' : '999'); | ||||
|   | ||||
| @@ -28,7 +28,7 @@ test('Label Printing', async ({ browser }) => { | ||||
|  | ||||
|   // Select plugin | ||||
|   await page.getByLabel('related-field-plugin').click(); | ||||
|   await page.getByText('InvenTreeLabelSheet').last().click(); | ||||
|   await page.getByText('InvenTreeLabelMachine').last().click(); | ||||
|  | ||||
|   // Select label template | ||||
|   await page.getByLabel('related-field-template').click(); | ||||
| @@ -37,7 +37,8 @@ test('Label Printing', async ({ browser }) => { | ||||
|   await page.waitForTimeout(100); | ||||
|  | ||||
|   await page.getByLabel('related-field-plugin').click(); | ||||
|   await page.getByText('InvenTreeLabelSheet').last().click(); | ||||
|  | ||||
|   await page.getByText('InvenTreeLabel', { exact: true }).click(); | ||||
|  | ||||
|   // Submit the print form (second time should result in success) | ||||
|   await page.getByRole('button', { name: 'Print', exact: true }).isEnabled(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user