mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	Remove CUI (#8384)
* remove CUI
* fix loading
* fix login middleware
* remove css template functions
* tmp fix for recurtion
* remove old test
* fix assertations
* fix middleware tests
* re-add plugin tags
* remove thirdpartjs
* re-add mfa urls
* remove old js
* remove cui tags
* simplify error testing
* use license endpoint for testing instead
* disable successful test
* revert de-activation
* remove references to old UI customisation
* update docs to remove reference to removed page
* disable availabilty check
* possible fix to importing problem
* Revert "possible fix to importing problem"
This reverts commit ee9fccdc8c.
* remove old get_context_data
* fix migration
* remove unused function
* remove unused stuff
* remove unused template
* fix formatting of readme
			
			
This commit is contained in:
		| @@ -1,31 +0,0 @@ | ||||
| import { expect, test } from '@playwright/test'; | ||||
|  | ||||
| import { classicUrl, user } from './defaults'; | ||||
|  | ||||
| test('CUI - Index', async ({ page }) => { | ||||
|   await page.goto(`${classicUrl}/api/`); | ||||
|   await page.goto(`${classicUrl}/index/`, { timeout: 10000 }); | ||||
|   console.log('Page title:', await page.title()); | ||||
|   await expect(page).toHaveTitle(/^InvenTree.*Sign In$/); | ||||
|   await expect(page.getByRole('heading', { name: 'Sign In' })).toBeVisible(); | ||||
|  | ||||
|   await page.getByLabel('username').fill(user.username); | ||||
|   await page.getByLabel('password').fill(user.password); | ||||
|   await page.click('button', { text: 'Sign In' }); | ||||
|   await page.waitForURL('**/index/'); | ||||
|  | ||||
|   await page.waitForLoadState('networkidle'); | ||||
|   await expect(page).toHaveTitle('InvenTree Demo Server | Index'); | ||||
|   await expect(page.getByRole('button', { name: user.username })).toBeVisible(); | ||||
|   await expect( | ||||
|     page.getByRole('link', { name: 'Parts', exact: true }) | ||||
|   ).toBeVisible(); | ||||
|   await expect( | ||||
|     page.getByRole('link', { name: 'Stock', exact: true }) | ||||
|   ).toBeVisible(); | ||||
|   await expect( | ||||
|     page.getByRole('link', { name: 'Build', exact: true }) | ||||
|   ).toBeVisible(); | ||||
|   await expect(page.getByRole('button', { name: 'Buy' })).toBeVisible(); | ||||
|   await expect(page.getByRole('button', { name: 'Sell' })).toBeVisible(); | ||||
| }); | ||||
		Reference in New Issue
	
	Block a user