fix(shopping-e2e): exact match fuer Leeren-Confirm-Button
All checks were successful
Build & Publish Docker Image / build-and-push (push) Successful in 36s

This commit is contained in:
hsiegeln
2026-04-21 23:52:49 +02:00
parent 4e902b1d98
commit 52bb83cbd5

View File

@@ -101,7 +101,7 @@ test.describe('Einkaufsliste E2E', () => {
await page.getByRole('button', { name: 'Liste leeren' }).click(); await page.getByRole('button', { name: 'Liste leeren' }).click();
// Confirm-Dialog (ConfirmAction nutzt einen App-eigenen Dialog, kein native) // Confirm-Dialog (ConfirmAction nutzt einen App-eigenen Dialog, kein native)
await page.getByRole('button', { name: 'Leeren' }).click(); await page.getByRole('button', { name: 'Leeren', exact: true }).click();
await expect(page.getByText('Einkaufswagen ist leer.')).toBeVisible(); await expect(page.getByText('Einkaufswagen ist leer.')).toBeVisible();
await expect(page.getByLabel(/Einkaufsliste \(\d+\)/)).toHaveCount(0); await expect(page.getByLabel(/Einkaufsliste \(\d+\)/)).toHaveCount(0);