From 8f0d0025496ae8012469161de0e8ae14daaccd46 Mon Sep 17 00:00:00 2001 From: vladikoff Date: Fri, 27 Jun 2014 11:45:51 -0700 Subject: [PATCH] fix(test): fix functional test remote for slow connections --- tests/functional/oauth_sign_in.js | 62 +++++++++++++++---------------- 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/tests/functional/oauth_sign_in.js b/tests/functional/oauth_sign_in.js index 816b0c93cb..9f6d813fad 100644 --- a/tests/functional/oauth_sign_in.js +++ b/tests/functional/oauth_sign_in.js @@ -37,43 +37,43 @@ define([ return FunctionalHelpers.clearBrowserState(this) .then(function () { - return self.get('remote'); - }) - // sign up, do not verify steps - .get(require.toUrl(OAUTH_APP)) - .waitForVisibleByCssSelector('#splash') - .elementByCssSelector('#splash .signup') - .click() - .end() + return self.get('remote') + // sign up, do not verify steps + .get(require.toUrl(OAUTH_APP)) + .waitForVisibleByCssSelector('#splash') + .elementByCssSelector('#splash .signup') + .click() + .end() - .waitForVisibleByCssSelector('#fxa-signup-header') - .elementByCssSelector('form input.email') - .clear() - .click() - .type(email) - .end() + .waitForVisibleByCssSelector('#fxa-signup-header') + .elementByCssSelector('form input.email') + .clear() + .click() + .type(email) + .end() - .elementByCssSelector('form input.password') - .click() - .type(PASSWORD) - .end() + .elementByCssSelector('form input.password') + .click() + .type(PASSWORD) + .end() - .elementByCssSelector('#fxa-age-year') - .click() - .end() + .elementByCssSelector('#fxa-age-year') + .click() + .end() - .elementById('fxa-' + (TOO_YOUNG_YEAR - 1)) - .buttonDown() - .buttonUp() - .click() - .end() + .elementById('fxa-' + (TOO_YOUNG_YEAR - 1)) + .buttonDown() + .buttonUp() + .click() + .end() - .elementByCssSelector('button[type="submit"]') - .click() - .end() + .elementByCssSelector('button[type="submit"]') + .click() + .end() - .waitForVisibleByCssSelector('#fxa-confirm-header') - .end(); + .waitForVisibleByCssSelector('#fxa-confirm-header') + .end(); + }); }, 'verified': function () {