Skip to content

DS-2410: Add VRT and E2E test for ontario-accordion#174

Open
MeaghanCarrieres wants to merge 2 commits intoDS-2274/create-nextjs-visual-regression-testing-pocfrom
meaghan/test/DS-2410/add-accordion-tests-nextjs-app
Open

DS-2410: Add VRT and E2E test for ontario-accordion#174
MeaghanCarrieres wants to merge 2 commits intoDS-2274/create-nextjs-visual-regression-testing-pocfrom
meaghan/test/DS-2410/add-accordion-tests-nextjs-app

Conversation

@MeaghanCarrieres
Copy link
Collaborator

Adds Visual Regression Testing (VRT) and End-to-End (E2E) test coverage for the ontario-accordion component in the NextJS app.

What was added

  • Updated the ontario-accordion test page to:
    • Include stable id attributes for reliable test targeting
    • Cover edge and negative cases (e.g. invalid accordion-data prop, missing expand-collapse-button prop)
  • Added VRT tests to validate:
    • Default rendering variants
    • Expanded/collapsed states
    • Custom expand/collapse labels
    • Focus states
  • Added E2E tests to validate:
    • Accordion open/close behaviour
    • Expand all / collapse all logic
    • Accessibility state updates and labels
    • Handling of invalid input
  • Introduced small accordion event utilities to:
    • Capture and assert accordionChange events in a framework-agnostic way
    • Keep tests readable and consistent with existing Playwright patterns

@MeaghanCarrieres MeaghanCarrieres force-pushed the meaghan/test/DS-2410/add-accordion-tests-nextjs-app branch from 16aeb84 to d17499b Compare February 4, 2026 17:57
@smorrisods smorrisods marked this pull request as draft February 11, 2026 16:54
@MeaghanCarrieres MeaghanCarrieres force-pushed the DS-2274/create-nextjs-visual-regression-testing-poc branch from 20aad82 to 53631b8 Compare February 18, 2026 15:29
@MeaghanCarrieres MeaghanCarrieres force-pushed the meaghan/test/DS-2410/add-accordion-tests-nextjs-app branch from d17499b to 74ec69d Compare February 18, 2026 16:07
@MeaghanCarrieres MeaghanCarrieres marked this pull request as ready for review February 18, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant