Last active
October 9, 2015 16:42
-
-
Save amedrz/ecafd9aefa96013d3955 to your computer and use it in GitHub Desktop.
page-object-before
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
// Before page object | |
test('sign up', function() { | |
expect(1); | |
visit('/sign-up'); | |
fillIn('#signup-form #name', 'John Doe'); | |
fillIn('#signup-form #email', 'john@doe.com'); | |
fillIn('#signup-form #password', '1234567890'); | |
click('#signup-form #submit'); | |
andThen(function() { | |
equal(currentPath(), 'success'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment