import { test, expect } from '@playwright/test'; test('test', async ({ page }) => { await page.goto('http://localhost:3000/'); await page.getByRole('button', { name: 'Neues Spiel starten' }).click(); await page.getByRole('textbox', { name: 'Name Spieler' }).click(); await page.getByRole('textbox', { name: 'Name Spieler' }).fill('Mia'); await page.getByRole('button', { name: 'Weiter' }).click(); await page.getByRole('textbox', { name: 'Name Spieler' }).click(); await page.getByRole('textbox', { name: 'Name Spieler' }).fill('Noah'); await page.getByRole('button', { name: 'Weiter' }).click(); await page.getByRole('button', { name: 'Überspringen' }).click(); 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 page.getByRole('button', { name: 'Aktueller Punktestand für Mia' }).click(); await page.getByRole('button', { name: 'Aktueller Punktestand für Noah' }).click(); await page.getByRole('button', { name: 'Aktueller Punktestand für Mia' }).click(); await page.getByRole('button', { name: 'Aktueller Punktestand für Mia' }).click(); await page.getByRole('button', { name: 'Aktueller Punktestand für Noah' }).click(); await page.getByRole('button', { name: 'Aktueller Punktestand für Mia' }).click(); await page.getByRole('button', { name: 'Aktueller Punktestand für Mia' }).click(); await page.getByRole('button', { name: 'Aktueller Punktestand für Mia' }).click(); await page.getByRole('button', { name: 'Aktueller Punktestand für Mia' }).click(); await page.getByRole('button', { name: 'Aktueller Punktestand für Mia' }).click(); await page.getByRole('button', { name: 'Aktueller Punktestand für Mia' }).click(); await page.getByRole('button', { name: 'Bestätigen' }).click(); await page.getByRole('button', { name: 'Zurück zur Liste' }).click(); });