Created
February 8, 2019 11:14
-
-
Save alex-popov-tech/6f6cf15afc0559acbab47867aa097767 to your computer and use it in GitHub Desktop.
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
class SignInPage { | |
visit() { | |
cy.visit('/signin'); | |
} | |
fillEmail(value) { | |
const field = cy.get(`[data-testid=SignInEmailField]`); | |
field.clear(); | |
field.type(value); | |
return this; | |
} | |
fillPassword(value) { | |
const field = cy.get(`[data-testid=SignInPasswordField]`); | |
field.clear(); | |
field.type(value); | |
return this; | |
} | |
submit() { | |
const button = cy.get(`[data-testid=SignInSubmitButton]`); | |
button.click(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment