2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-15 03:25:42 +00:00

make test faster

This commit is contained in:
Matthias Mair
2024-04-09 23:08:26 +02:00
parent 3dbd5ef9b9
commit 9e25513541

View File

@ -41,12 +41,16 @@ test('PUI - Quick Command', async ({ page }) => {
await page.getByPlaceholder('Search...').press('Enter');
await page.waitForURL('**/platform/dashboard');
// Reset
await page.goto('./platform/');
// Use navigation menu
await page.getByRole('button', { name: 'Open spotlight' }).click();
await page
.getByRole('button', { name: 'Open Navigation Open the main' })
.click();
// 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: 'Documentation' }).click();
await page.getByRole('heading', { name: 'About' }).click();