test(e2e): Gewicht-Tab-Button im Tabpanel ansprechen (Erwerb-Sektion-Kollision)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-22 23:15:23 +02:00
parent 156ede120e
commit 00dc724605

View File

@@ -90,7 +90,8 @@ test('Detailseite zeigt Stammdaten + Tab-Inhalte (Gesundheit/Gewicht/Fotos)', as
await expect(page.locator('svg.line-chart')).toBeVisible()
await expect(page.getByText(/78\s*g/)).toBeVisible()
await page.getByLabel(tabs.weight.fields.weightGrams).fill('85')
await page.getByRole('button', { name: tabs.weight.addButton, exact: true }).click()
// Im Tabpanel ansprechen — die Erwerb-Sektion der Akte hat ebenfalls einen „Hinzufügen"-Button.
await page.getByRole('tabpanel').getByRole('button', { name: tabs.weight.addButton, exact: true }).click()
await expect(page.getByText(/85\s*g/)).toBeVisible()
})