add text input testing

This commit is contained in:
Matthias Mair 2024-04-09 22:30:53 +02:00
parent 968d4ba2b7
commit 866c1b52a1
No known key found for this signature in database
GPG Key ID: A593429DDA23B66A

View File

@ -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 expect(page).toHaveTitle('InvenTree');
await page.waitForURL('**/platform/');
@ -33,4 +33,11 @@ test('test', async ({ page }) => {
.getByRole('heading', { name: 'Welcome to your Dashboard,' })
.click();
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');
});