Return this

This commit is contained in:
Chi Vinh Le
2017-11-09 21:51:31 +01:00
parent 42a477ae41
commit ca7b790962
+2 -2
View File
@@ -5,7 +5,7 @@ module.exports = {
.waitForElementVisible('body');
},
login(user) {
this
return this
.setValue('@emailInput', user.email)
.setValue('@passwordInput', user.password)
.waitForElementVisible('@signIn')
@@ -13,7 +13,7 @@ module.exports = {
.click('@loginButton');
},
register(user) {
this
return this
.waitForElementVisible('@registerButton')
.click('@registerButton')
.setValue('@emailInput', user.email)