Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1331 from vladikoff/clear-store-fix
Browse files Browse the repository at this point in the history
fix(test): fix functional test remote for slow connections
  • Loading branch information
zaach committed Jun 27, 2014
2 parents 59e425a + 8f0d002 commit e22c440
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions tests/functional/oauth_sign_in.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit e22c440

Please sign in to comment.