Ghost/apps/admin-x-settings/test/e2e/search.test.ts
Peter Zimon a5b62707ef
AdminX theme navigation experiment (#17210)
refs. https://github.com/TryGhost/Product/issues/3349

It's a bit cumbersome how design and theme navigation is handled in
AdminX at the moment. On a high level, this PR applies the following
changes:

- Change theme is under Design settings
- After activating a theme, Design settings are automatically opened
2023-07-06 12:03:01 +02:00

23 lines
712 B
TypeScript

import {expect, test} from '@playwright/test';
import {mockApi} from '../utils/e2e';
test.describe('Search', async () => {
test('Hiding and showing groups based on the search term', async ({page}) => {
await mockApi({page});
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();
});
});