Last active
October 7, 2015 20:53
-
-
Save amedrz/d837b8c46b6634321f36 to your computer and use it in GitHub Desktop.
using-data-attrs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Markup example: | |
<label for="name">Name</label> | |
<input id="name" type="text" data-tests="signup-name"/> | |
... | |
**/ | |
const pageObject = PO.build({ | |
visit: PO.visitable('/sign-up'), | |
name: PO.fillable('[data-tests="signup-name"]'), | |
email: PO.fillable('[data-tests="signup-email"]'), | |
password: PO.fillable('[data-tests="signup-password"]'), | |
submit: PO.clickable('[data-tests="signup-submit"]') | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment