refactor(onboarding): remove aria-hidden workaround from progress sidebar

Replace getByText with getByRole(heading) in page test to disambiguate
the duplicate "Haushalt benennen" text between sidebar and form.
Revert defaultIgnore change in test-setup.ts.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-02 19:28:46 +02:00
parent 6de7f5a9b5
commit e5614ccf30
3 changed files with 1 additions and 8 deletions

View File

@@ -1,7 +1 @@
import '@testing-library/jest-dom/vitest';
import { configure } from '@testing-library/dom';
// Exclude elements inside aria-hidden containers from text queries,
// so that visually-hidden sidebars (e.g. ProgressSidebar in onboarding pages)
// don't create duplicate text matches when the same text appears in the main content.
configure({ defaultIgnore: 'script, style, [aria-hidden="true"] *' });