Skip to content

Stop selecting headings by tag in TestCafe page models - #39

Open
dougchestnut wants to merge 1 commit into
eclipse-pass:mainfrom
dougchestnut:1261-heading-selectors
Open

dougchestnut wants to merge 1 commit into
eclipse-pass:mainfrom
dougchestnut:1261-heading-selectors

Conversation

@dougchestnut

Copy link
Copy Markdown

Summary

Coordinates with eclipse-pass/pass-ui#1350 so the acceptance suite does not depend on heading tag names.

  • Dashboard verify() uses .card-title instead of h2.
  • Submission details verifyTitle uses [data-test-submission-detail-title] instead of h5.
  • Policy verifyPolicyExists / verifyPolicyNotExists both use [data-test-policy-title] (no h3). That keeps the not-exists check from becoming an always-pass if the tag changes again.

Needed by eclipse-pass/pass-ui#1350
Fixes eclipse-pass/main#1261

Dashboard, submission detail, and policy cards are identified by
stable class or data-test attributes so pass-ui heading-level changes
do not break verify() or turn verifyPolicyNotExists into an always-pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Order page headings sequentially for accessibility and a11y tooling

1 participant