Created
October 6, 2015 15:59
-
-
Save amedrz/f642571f5164277a0f98 to your computer and use it in GitHub Desktop.
page-object-after
This file contains 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
// After page object | |
const pageObject = PO.build({ | |
visit: PO.visitable('/sign-up'), | |
name: PO.fillable('#signup-form #name'), | |
email: PO.fillable('#signup-form #email'), | |
password: PO.fillable('#signup-form #password'), | |
submit: PO.clickable('#signup-form #submit') | |
}); | |
test('sign up', function() { | |
expect(1); | |
pageObject.visit() | |
.name('John Doe') | |
.email('john@doe.com') | |
.password('1234567890') | |
.submit(); | |
andThen(function() { | |
equal(currentPath(), 'success'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment