feat: implement Save & Taste flow in CameraCapture

This commit is contained in:
2025-12-18 11:49:40 +01:00
parent 2685176992
commit 5f757d7b56
9 changed files with 244 additions and 19 deletions

15
tests/e2e/auth.test.ts Normal file
View File

@@ -0,0 +1,15 @@
import { test, expect } from '@playwright/test';
test.describe('Authentication', () => {
test('should show error on invalid login', async ({ page }) => {
await page.goto('/');
await page.getByPlaceholder('name@beispiel.de').fill('wrong@example.com');
await page.getByPlaceholder('••••••••').fill('wrongpassword');
await page.getByRole('button', { name: 'Einloggen' }).click();
// Expect error message
// Note: This content depends on Supabase error message
await expect(page.locator('div:has-text("Invalid login credentials")')).toBeVisible();
});
});