Last active
October 6, 2017 08:54
-
-
Save igorshubovych/7d9191fe9caf8e7b7ac5dde20e72cced to your computer and use it in GitHub Desktop.
E2E testing principle
This file contains hidden or 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
HappyPath { | |
testLogin() { | |
const loginPage = new LoginPage(); | |
loginPage.getEditBox().set('sdhj'); | |
loginPage.pressSubmitButton(); | |
} | |
} |
This file contains hidden or 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
LoginPage { | |
getEditBox() { | |
// return $('[data-test-id="editBox"]'); | |
return $('div > div > div > input'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment