feat: implement Save & Taste flow in CameraCapture
This commit is contained in:
15
tests/e2e/auth.test.ts
Normal file
15
tests/e2e/auth.test.ts
Normal 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();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user