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

fix: checkbox handling #60

Merged
merged 1 commit into from Oct 3, 2022
Merged

fix: checkbox handling #60

merged 1 commit into from Oct 3, 2022

Conversation

SamMousa
Copy link
Contributor

Fixes #22 as a side effect.

This PR improves handling of checkboxes.

  • Improve tests to actually confirm negative flows as well, ie check that the assertion seeCheckboxIsChecked will actually fail on unchecked checkboxes. Using a single data provider all cases are tested for both seeCheckboxIsChecked and seeCheckboxIsNotChecked assertions.
  • Per the spec allow any value for the checked attribute, so <input type=checkbox checked=test/> is now properly interpreted as checked as well.

Copy link
Member

@TavoNiievez TavoNiievez left a comment

Choose a reason for hiding this comment

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

LGTM

@Arhell Arhell requested a review from Naktibalda October 1, 2022 07:47
@Naktibalda Naktibalda merged commit 10482f7 into master Oct 3, 2022
@Naktibalda Naktibalda deleted the fix-checkbox-handling branch October 3, 2022 15:33
@Naktibalda
Copy link
Member

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.

seeCheckboxIsChecked and dontSeeCheckboxIsChecked have 'not found' error with unchecked checkboxes
4 participants