a596b3aaca
ref https://www.notion.so/AdminX-testing-plan-99b2dab27e794fc893767ccd01c84a63?d=26612fc2b9d84e65bbb269fa3bc5079e&pvs=4#f0089cd4d9f24e93bd7f8e2868987bf6 This pull request renames the end-to-end tests to acceptance tests in the `apps/admin-x-settings` folder. It updates the `ci.yml` file, the `package.json` file, the `playwright.config.ts` file, and the test files to reflect the new naming convention. This change aims to better reflect the purpose and scope of the tests.
23 lines
769 B
TypeScript
23 lines
769 B
TypeScript
import {expect, test} from '@playwright/test';
|
|
import {globalDataRequests, mockApi} from '../utils/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();
|
|
});
|
|
});
|