Skip to content
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

isChecked: Add support for aria-checked="true/false" #535

Merged
merged 1 commit into from
Nov 12, 2019

Conversation

Turbo87
Copy link
Collaborator

@Turbo87 Turbo87 commented Nov 11, 2019

Checkboxes and radiobuttons can be implemented using e.g. <button role="checkbox" aria-checked="false"/> to make them easier to style. This PR adds support for the aria-checked attribute to the isChecked() assertion to avoid the .hasAttribute('aria-checked', 'true') verbosity.

Copy link
Member

@mansona mansona left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great 🎉 nice work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants