Advertisement
Guest User

Untitled

a guest
Oct 6th, 2015
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. // After page object
  2. const pageObject = PO.build({
  3. visit: PO.visitable('/sign-up'),
  4. name: PO.fillable('#signup-form #name'),
  5. email: PO.fillable('#signup-form #email'),
  6. password: PO.fillable('#signup-form #password'),
  7. submit: PO.clickable('#signup-form #submit')
  8. });
  9.  
  10. test('sign up', function() {
  11. expect(1);
  12.  
  13. pageObject.visit()
  14. .name('John Doe')
  15. .email('john@doe.com')
  16. .password('1234567890')
  17. .submit();
  18.  
  19. andThen(function() {
  20. equal(currentPath(), 'success');
  21. });
  22. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement