This commit is contained in:
okbel
2018-05-28 16:20:20 -03:00
parent 4299c373ba
commit b15a306c43
3 changed files with 11 additions and 5 deletions
+3 -1
View File
@@ -5,7 +5,9 @@ module.exports = {
return this.waitForElementVisible('body');
},
login(user) {
return this.setValue('@emailInput', user.email)
return this.waitForElementVisible('@emailInput')
.setValue('@emailInput', user.email)
.waitForElementVisible('@passwordInput')
.setValue('@passwordInput', user.password)
.waitForElementVisible('@signIn')
.waitForElementVisible('@loginButton')