16 lines
635 B
TypeScript
16 lines
635 B
TypeScript
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();
|
|
});
|
|
});
|