mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-15 19:45:46 +00:00
make test faster
This commit is contained in:
@ -41,12 +41,16 @@ test('PUI - Quick Command', async ({ page }) => {
|
|||||||
await page.getByPlaceholder('Search...').press('Enter');
|
await page.getByPlaceholder('Search...').press('Enter');
|
||||||
await page.waitForURL('**/platform/dashboard');
|
await page.waitForURL('**/platform/dashboard');
|
||||||
|
|
||||||
|
// Reset
|
||||||
|
await page.goto('./platform/');
|
||||||
|
|
||||||
// Use navigation menu
|
// Use navigation menu
|
||||||
await page.getByRole('button', { name: 'Open spotlight' }).click();
|
await page.getByRole('button', { name: 'Open spotlight' }).click();
|
||||||
await page
|
await page
|
||||||
.getByRole('button', { name: 'Open Navigation Open the main' })
|
.getByRole('button', { name: 'Open Navigation Open the main' })
|
||||||
.click();
|
.click();
|
||||||
// assert the nav headers are visible
|
// assert the nav headers are visible
|
||||||
|
await page.getByRole('heading', { name: 'Navigation' }).click();
|
||||||
await page.getByRole('heading', { name: 'Pages' }).click();
|
await page.getByRole('heading', { name: 'Pages' }).click();
|
||||||
await page.getByRole('heading', { name: 'Documentation' }).click();
|
await page.getByRole('heading', { name: 'Documentation' }).click();
|
||||||
await page.getByRole('heading', { name: 'About' }).click();
|
await page.getByRole('heading', { name: 'About' }).click();
|
||||||
|
Reference in New Issue
Block a user