678977ab23
- Tablet-first responsive scoreboard: whole player card is tap target - Per-step wizard backgrounds and live summary panel - Larger touch targets, safe-area handling, reduced-motion support - German UI error strings in App.tsx - Updated SOUL.md and README.md for current architecture - Cleanup: removed legacy components, .cursor/, UI_IMPROVEMENTS.md - Renamed package to bscscore, fixed TOTAL_WIZARD_STEPS
28 lines
1.3 KiB
TypeScript
28 lines
1.3 KiB
TypeScript
import { test } from '@playwright/test';
|
|
import { addPoint, enterPlayerName } from '../helpers/wizard';
|
|
|
|
test('test', async ({ page }) => {
|
|
await page.goto('http://localhost:3000/');
|
|
await page.getByRole('button', { name: 'Neues Spiel starten' }).click();
|
|
await enterPlayerName(page, 'Spieler 1', 'Name Spieler 1', 'Henry');
|
|
await enterPlayerName(page, 'Spieler 2', 'Name Spieler 2', 'Iris');
|
|
await enterPlayerName(page, 'Spieler 3 (optional)', 'Name Spieler 3 (optional)', 'Jack');
|
|
await page.getByRole('button', { name: '9-Ball' }).click();
|
|
await page.getByRole('button', { name: '7' }).click();
|
|
await page.getByRole('button', { name: 'Break-Regel wählen: Wechselbreak' }).click();
|
|
await page.getByRole('button', { name: 'Zuerst: Iris' }).click();
|
|
await page.getByRole('button', { name: 'Zweites Break: Jack' }).click();
|
|
await addPoint(page, 'Iris', 0);
|
|
await addPoint(page, 'Henry', 0);
|
|
await addPoint(page, 'Jack', 0);
|
|
await addPoint(page, 'Iris', 1);
|
|
await addPoint(page, 'Henry', 1);
|
|
await addPoint(page, 'Iris', 2);
|
|
await addPoint(page, 'Iris', 3);
|
|
await addPoint(page, 'Iris', 4);
|
|
await addPoint(page, 'Iris', 5);
|
|
await addPoint(page, 'Iris', 6);
|
|
await page.getByRole('button', { name: 'Bestätigen' }).click();
|
|
await page.getByRole('button', { name: 'Zurück zur Liste' }).click();
|
|
});
|