Define a basic login form with redirection to the Dashboard #127

Merged
bustikiller merged 8 commits from login-register-forms into main 2024-12-01 19:10:36 +00:00
Showing only changes of commit 15ef451966 - Show all commits

View File

@ -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();