Skip to content

Instantly share code, notes, and snippets.

@igorshubovych
Last active October 6, 2017 08:54
Show Gist options
  • Save igorshubovych/7d9191fe9caf8e7b7ac5dde20e72cced to your computer and use it in GitHub Desktop.
Save igorshubovych/7d9191fe9caf8e7b7ac5dde20e72cced to your computer and use it in GitHub Desktop.
E2E testing principle
HappyPath {
testLogin() {
const loginPage = new LoginPage();
loginPage.getEditBox().set('sdhj');
loginPage.pressSubmitButton();
}
}
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