From ca7b7909620a78d68a56c7a683cac5c2660cf029 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Thu, 9 Nov 2017 21:51:31 +0100 Subject: [PATCH] Return this --- test/e2e/page_objects/popup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/page_objects/popup.js b/test/e2e/page_objects/popup.js index 89b071e9a..4d2aee7b6 100644 --- a/test/e2e/page_objects/popup.js +++ b/test/e2e/page_objects/popup.js @@ -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)