-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: label text should be clickable to toggle snapshot highlight #21122
Conversation
Thanks for taking the time to open a PR!
|
Now that the label is clickable, whaddya think about adding |
@rachelruderman good point. On a general form field it seems like too much, but here I can see it making it easier for users to discover how it works and not having to be so precise. |
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
Nice, this has been a pain point for me for a while. Thanks for following up on this. |
@rachelruderman done! |
…e-config * 10.0-release: chore: Move component-index generation to scaffold-config package (#21090) fix: label text should be clickable to toggle snapshot highlight (#21122) feat: add next preset to webpack-dev-server-fresh (#21069) chore: add dev-servers as deps to server to be included in the binary (#21142) fix: do not highlight preExtension if selected option is renameFolder (#21121) fix(unify): Remove 'Reconfigure' dropdown from Testing Type chooser (#21063) feat(unify): launchpad header breadcrumbs and reusable tooltip component (#20648) test: add windows-test-kitchensink job (#20847) fix: aut centering and height calculation (#21019) chore: fix tests that fail on windows (#21055) fix: running a new test after already having run tests (#21087) fix: ct project setup framework keys for next and nuxt (#21116) fix: remove MountReturn from scaffolded ct support file (#21119) fix: do not scaffold fixtures if folder exist (#21078) fix: revert "fix: types for Cypress.Commands.add (#20376)" (#21104) chore: Update Chrome (stable) to 100.0.4896.127 and Chrome (beta) to 101.0.4951.34 (#21083) fix: types for Cypress.Commands.add (#20376) (#20377)
User facing changelog
Fixes switch label to be clickable, not just the switch itself. Switch is also labelled correctly in the Accessibility Tree after this PR. @lmiller1990 noticed this in a PR review on a related part of the code, but it was merged before this could be updated.
Additional details
Updated test to use
cy.findByLabelText(highlightsLabel)
instead ofcy.get('[id="toggle-highlights"]')
to catch regressions.How has the user experience changed?
Previously, text was not clickable to active the switch:
current.mov
Now, it is:
desired.mov
PR Tasks
cypress-documentation
?type definitions
?cypress.schema.json
?