From 39907b0105d16d2d6837df155ed1d8b9f30312d4 Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Wed, 13 Nov 2024 19:09:50 +0100 Subject: [PATCH] Fix tests --- app/dashboard/layout.tsx | 2 +- tests/guests.spec.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/dashboard/layout.tsx b/app/dashboard/layout.tsx index d179387..69055f9 100644 --- a/app/dashboard/layout.tsx +++ b/app/dashboard/layout.tsx @@ -8,7 +8,7 @@ export default function Layout({ children }: { children: React.ReactNode }) {
-
{children}
+
{children}
); } \ No newline at end of file diff --git a/tests/guests.spec.ts b/tests/guests.spec.ts index 05e7215..02a8bc7 100644 --- a/tests/guests.spec.ts +++ b/tests/guests.spec.ts @@ -1,7 +1,8 @@ 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') }) \ No newline at end of file