You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
793 B
23 lines
793 B
import {expect, test} from '@playwright/test';
|
|
import {globalDataRequests, mockApi} from '@tryghost/admin-x-framework/test/acceptance';
|
|
|
|
test.describe('Search', async () => {
|
|
test('Hiding and showing groups based on the search term', async ({page}) => {
|
|
await mockApi({page, requests: globalDataRequests});
|
|
|
|
await page.goto('/');
|
|
|
|
const searchBar = page.getByLabel('Search');
|
|
|
|
await searchBar.fill('design');
|
|
|
|
await expect(page.getByTestId('design')).toBeVisible();
|
|
await expect(page.getByTestId('title-and-description')).not.toBeVisible();
|
|
|
|
await searchBar.fill('title');
|
|
|
|
await expect(page.getByTestId('design')).not.toBeVisible();
|
|
await expect(page.getByTestId('title-and-description')).toBeVisible();
|
|
});
|
|
});
|