mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 14:43:08 +03:00
a5b62707ef
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
23 lines
712 B
TypeScript
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();
|
|
});
|
|
});
|