mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 05:05:42 +00:00 
			
		
		
		
	[refactor] Stocktake -> Stock History (#10124)
* Remove STOCKTAKE ruleset * Adjust wording of settings * Cleanup * Improve text for global settings * Add BulkDeleteMixin to "stocktake" endpoint * Frontend updates * Migrations - Remove field 'last_stocktake' from Part model - Remove fields 'user' and 'note' from PartStocktake model - Remove model PartStocktakeReport * Frontend cleanup * Rename global setting * Rewrite stocktake functionality * Cleanup * Adds custom exporter for part stocktake data * Frontend cleanup * Bump API version * Tweaks * Frontend updates * Fix unit tests * Fix helper func * Add docs * Fix broken link * Docs updates * Adjust playwright tests * Add unit testing for plugin * Add unit testing for stock history creation * Fix unit test
This commit is contained in:
		| @@ -100,10 +100,10 @@ export const navigate = async ( | ||||
| /** | ||||
|  * CLick on the 'tab' element with the provided name | ||||
|  */ | ||||
| export const loadTab = async (page, tabName) => { | ||||
| export const loadTab = async (page, tabName, exact?) => { | ||||
|   await page | ||||
|     .getByLabel(/panel-tabs-/) | ||||
|     .getByRole('tab', { name: tabName }) | ||||
|     .getByRole('tab', { name: tabName, exact: exact ?? false }) | ||||
|     .click(); | ||||
|  | ||||
|   await page.waitForLoadState('networkidle'); | ||||
|   | ||||
| @@ -139,7 +139,8 @@ test('Settings - Global', async ({ browser, request }) => { | ||||
|   await loadTab(page, 'Barcodes'); | ||||
|   await loadTab(page, 'Pricing'); | ||||
|   await loadTab(page, 'Parts'); | ||||
|   await loadTab(page, 'Stock'); | ||||
|   await loadTab(page, 'Stock', true); | ||||
|   await loadTab(page, 'Stock History'); | ||||
|  | ||||
|   await loadTab(page, 'Notifications'); | ||||
|   await page | ||||
|   | ||||
		Reference in New Issue
	
	Block a user