Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 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');
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement