feat(frontend): apply UI/UX design system - purple/green palette, gradient buttons, 3D flip, polished pages
Applied ui-ux-pro-max design system recommendations: - Tailwind theme: study purple primary + correct green accent - Inter + Plus Jakarta Sans typography - Glassmorphic surfaces with soft shadows and mesh background - Real 3D card flip with spring physics + answer feedback flash - Gradient stat cards, progress bar, animated done screen with score ring - Polished Layout, Dashboard, Admin, AdminLesson, CardTable, ImportDialog, PracticeSetup, Practice, PracticeDone - E2E smoke updated for new accessible names
This commit is contained in:
@@ -2,15 +2,15 @@ import { test, expect } from '@playwright/test';
|
||||
|
||||
test('create lesson, add card, practice once', async ({ page }) => {
|
||||
await page.goto('/admin');
|
||||
await page.getByPlaceholder('Nieuwe wortel-les...').fill('E2E les');
|
||||
await page.getByRole('button', { name: 'Toevoegen' }).click();
|
||||
await page.getByRole('link', { name: /E2E les/ }).click();
|
||||
await page.getByPlaceholder(/Nieuwe wortel-les/).fill('E2E les');
|
||||
await page.getByRole('button', { name: /Toevoegen/ }).click();
|
||||
await page.getByRole('link', { name: /E2E les/ }).first().click();
|
||||
await page.getByPlaceholder('Nieuwe vraag').fill('q1');
|
||||
await page.getByPlaceholder('Antwoord').fill('a1');
|
||||
await page.getByRole('button', { name: '+' }).click();
|
||||
await page.getByRole('button', { name: 'Kaart toevoegen' }).click();
|
||||
await page.getByRole('link', { name: /Start oefenen/ }).click();
|
||||
await page.getByRole('button', { name: 'Start' }).click();
|
||||
await page.getByRole('button', { name: /Start sessie/ }).click();
|
||||
await page.getByRole('button', { name: 'Toon antwoord' }).click();
|
||||
await page.getByRole('button', { name: 'Goed' }).click();
|
||||
await expect(page.getByText(/Sessie klaar!/)).toBeVisible();
|
||||
await page.getByRole('button', { name: /Goed/ }).click();
|
||||
await expect(page.getByText(/Sessie klaar/)).toBeVisible({ timeout: 8000 });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user