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

Add isRequired() and isNotRequired() assertions #56

Closed
Turbo87 opened this issue Mar 11, 2018 · 2 comments
Closed

Add isRequired() and isNotRequired() assertions #56

Turbo87 opened this issue Mar 11, 2018 · 2 comments

Comments

@Turbo87
Copy link
Collaborator

Turbo87 commented Mar 11, 2018

This assertion should check if the required property of e.g. an <input> element is true or not.

Example:

assert.dom('.username-field').isRequired();
assert.dom('.coupon-code').isNotRequired();
@scalvert
Copy link
Collaborator

Also, the attribute being present also represents true, so the assertion should take that into consideration too.

@billybonks
Copy link

@Turbo87 guess you can mark this as complete

@Turbo87 Turbo87 closed this as completed Mar 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants