Fix tests
All checks were successful
Check usage of free licenses / build-static-assets (pull_request) Successful in 33s
Add copyright notice / copyright_notice (pull_request) Successful in 53s
Playwright Tests / test (pull_request) Successful in 2m16s

This commit is contained in:
Manuel Bustillo 2024-11-13 19:09:50 +01:00
parent 3e9775af99
commit 39907b0105
2 changed files with 4 additions and 3 deletions

View File

@ -8,7 +8,7 @@ export default function Layout({ children }: { children: React.ReactNode }) {
<div className="w-full flex-none md:w-64">
<SideNav />
</div>
<div className="flex-grow p-6 md:overflow-y-auto md:p-12">{children}</div>
<div data-testid="main-container" className="flex-grow p-6 md:overflow-y-auto md:p-12">{children}</div>
</div>
);
}

View File

@ -3,5 +3,6 @@ import { test, expect } from '@playwright/test'
test('should navigate to the guests page', async ({ page }) => {
await page.goto('/dashboard/guests')
await expect(page.getByRole('heading', { name: 'Guests' })).toContainText('Guests')
await expect(page.getByRole('tab', { name: 'Groups' })).toContainText('Groups')
await expect(page.getByRole('tab', { name: 'Guests' })).toContainText('Guests')
})