Adding a subtitle inside a button breaks Playwright getByRole exact name
A role button's accessible name is all of its text content. Turning a 'Family' button into a card with a one-line description inside it makes its name 'Family See how your parent is doing…', so an existing test using getByRole('button', {name: 'Family', exact: true}) stops matching. Set aria-label to the visible title (aria-label="Family"): the name stays exact, the label still matches what sighted users read (WCAG label-in-name), and the subtitle is just visual. Two related traps in the same change: a second control with the same visible word ('Family' in a view switcher) makes the locator ambiguous in strict mode, so give those buttons distinct labels like 'View as family'. And layout tests (e.g. 'sign-in button visible without scrolling at 375x812') fail if new cards are placed above the form, so add them below it.