mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
add text input testing
This commit is contained in:
parent
968d4ba2b7
commit
866c1b52a1
@ -1,6 +1,6 @@
|
|||||||
import { expect, test } from '@playwright/test';
|
import { expect, test } from './baseFixtures.js';
|
||||||
|
|
||||||
test('test', async ({ page }) => {
|
test('PUI - Quick Command', async ({ page }) => {
|
||||||
await page.goto('./platform/');
|
await page.goto('./platform/');
|
||||||
await expect(page).toHaveTitle('InvenTree');
|
await expect(page).toHaveTitle('InvenTree');
|
||||||
await page.waitForURL('**/platform/');
|
await page.waitForURL('**/platform/');
|
||||||
@ -33,4 +33,11 @@ test('test', async ({ page }) => {
|
|||||||
.getByRole('heading', { name: 'Welcome to your Dashboard,' })
|
.getByRole('heading', { name: 'Welcome to your Dashboard,' })
|
||||||
.click();
|
.click();
|
||||||
await page.waitForURL('**/platform');
|
await page.waitForURL('**/platform');
|
||||||
|
|
||||||
|
// Open Spotlight with Keyboard Shortcut and Search
|
||||||
|
await page.keyboard.press('Meta+K');
|
||||||
|
await page.getByPlaceholder('Search...').fill('Dashboard');
|
||||||
|
await page.getByPlaceholder('Search...').press('Tab');
|
||||||
|
await page.getByPlaceholder('Search...').press('Enter');
|
||||||
|
await page.waitForURL('**/platform/dashboard');
|
||||||
});
|
});
|
Loading…
Reference in New Issue
Block a user