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.2 KiB
TypeScript
28 lines
1.2 KiB
TypeScript
import { test } from '@playwright/test';
|
|
import { addPoint, enterPlayerName, skipPlayer3 } 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', 'Mia');
|
|
await enterPlayerName(page, 'Spieler 2', 'Name Spieler 2', 'Noah');
|
|
await skipPlayer3(page);
|
|
await page.getByRole('button', { name: '8-Ball' }).click();
|
|
await page.getByRole('button', { name: '9' }).click();
|
|
await page.getByRole('button', { name: 'Break-Regel wählen: Winnerbreak' }).click();
|
|
await page.getByRole('button', { name: 'Zuerst: Mia' }).click();
|
|
await addPoint(page, 'Mia', 0);
|
|
await addPoint(page, 'Noah', 0);
|
|
await addPoint(page, 'Mia', 1);
|
|
await addPoint(page, 'Mia', 2);
|
|
await addPoint(page, 'Noah', 1);
|
|
await addPoint(page, 'Mia', 3);
|
|
await addPoint(page, 'Mia', 4);
|
|
await addPoint(page, 'Mia', 5);
|
|
await addPoint(page, 'Mia', 6);
|
|
await addPoint(page, 'Mia', 7);
|
|
await addPoint(page, 'Mia', 8);
|
|
await page.getByRole('button', { name: 'Bestätigen' }).click();
|
|
await page.getByRole('button', { name: 'Zurück zur Liste' }).click();
|
|
});
|