Add slug prefix to Playwright specs
This commit is contained in:
parent
82f5dd6c64
commit
15ef451966
@ -65,7 +65,7 @@ const mockGroupsAPI = ({ page }: { page: Page }) => {
|
|||||||
test('should display the list of guests', async ({ page }) => {
|
test('should display the list of guests', async ({ page }) => {
|
||||||
await mockGuestsAPI({ page });
|
await mockGuestsAPI({ page });
|
||||||
|
|
||||||
await page.goto('/dashboard/guests');
|
await page.goto('/default/dashboard/guests');
|
||||||
|
|
||||||
await expect(page.getByRole('tab', { name: 'Groups' })).toBeVisible();
|
await expect(page.getByRole('tab', { name: 'Groups' })).toBeVisible();
|
||||||
await expect(page.getByRole('tab', { name: 'Guests' })).toBeVisible();
|
await expect(page.getByRole('tab', { name: 'Guests' })).toBeVisible();
|
||||||
@ -90,7 +90,7 @@ test('should display the list of guests', async ({ page }) => {
|
|||||||
test('should display the list of groups', async ({ page }) => {
|
test('should display the list of groups', async ({ page }) => {
|
||||||
await mockGroupsAPI({ page });
|
await mockGroupsAPI({ page });
|
||||||
|
|
||||||
await page.goto('/dashboard/guests');
|
await page.goto('/default/dashboard/guests');
|
||||||
await page.getByRole('tab', { name: 'Groups' }).click();
|
await page.getByRole('tab', { name: 'Groups' }).click();
|
||||||
|
|
||||||
await expect(page.getByText('There are 2 elements in the list')).toBeVisible();
|
await expect(page.getByText('There are 2 elements in the list')).toBeVisible();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user