diff --git a/admin/src/pages/Login.tsx b/admin/src/pages/Login.tsx index 115cfeb..32dc5a9 100644 --- a/admin/src/pages/Login.tsx +++ b/admin/src/pages/Login.tsx @@ -2,7 +2,7 @@ import { useState } from 'react'; import { useNavigate } from 'react-router-dom'; import { Building2, Library, Users } from 'lucide-react'; import { useAuth } from '../store/auth'; -import { Button, Card, ErrorText, Field, H1, Input, ThemeToggle } from '../components/ui'; +import { Button, Card, ErrorText, Field, Input, ThemeToggle } from '../components/ui'; import { Brandmark } from '../components/Brandmark'; const REMEMBER_KEY = 'fitos-remembered-email'; @@ -55,9 +55,9 @@ export default function Login() { />
- +

FitOS Admin - +

Cała platforma @@ -100,10 +100,6 @@ export default function Login() {
-
-

FitOS Admin

-

Panel administracyjny (tylko admin)

-
- FitOS +

FitOS

Trening, który @@ -82,10 +82,7 @@ export default function AuthShell({
-
-

FitOS

-

{subtitle}

-
+ {subtitle &&

{subtitle}

} {children}
diff --git a/app/src/pages/Login.tsx b/app/src/pages/Login.tsx index 7f952f8..0ea03f4 100644 --- a/app/src/pages/Login.tsx +++ b/app/src/pages/Login.tsx @@ -61,7 +61,7 @@ export default function Login() { }; return ( - + await page.goto('/'); await expect(page).toHaveURL(/\/login$/); await expect(page.getByRole('heading', { name: 'FitOS' })).toBeVisible(); - await expect(page.getByText('Zaloguj się')).toBeVisible(); + await expect(page.getByRole('button', { name: 'Zaloguj' })).toBeVisible(); }); test('udane logowanie przekierowuje na dashboard', async ({ page }) => {