Permalink
Browse files

Reorder vows in new-user-secondary. Fixes #2704.

  When I swapped the browser.newSession calls for testSetup.newBrowserSession
  calls, the vows got split in the wrong order, so that null was getting passed
  as the link to the browser.get call.
  • Loading branch information...
1 parent a208631 commit cb9bb4c1d984be2d906761f9e72c0d69c54fb890 @6a68 6a68 committed Nov 15, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 automation-tests/tests/new-user/new-user-secondary-test.js
@@ -47,12 +47,12 @@ var new_secondary_123done_two_browsers = {
password: theEmail.split('@')[0]
}, done);
},
- "get verification link from email": function(done) {
- restmail.getVerificationLink({ email: theEmail }, done);
- },
"get another browser session": function(done) {
testSetup.newBrowserSession(secondBrowser, done);
},
+ "get verification link from email": function(done) {
+ restmail.getVerificationLink({ email: theEmail }, done);
+ },
"open verification link in new browser window": function(done, link) {
secondBrowser.get(link, done);
},
@@ -100,12 +100,12 @@ var new_secondary_mfb_two_browsers = {
password: mfbEmail.split('@')[0], // we use the user part of email as password. why not?
}, done);
},
- "mfb get verification link from email": function(done) {
- restmail.getVerificationLink({ email: mfbEmail }, done);
- },
"create a second selenium session": function(done) {
testSetup.newBrowserSession(secondBrowser, done);
},
+ "mfb get verification link from email": function(done) {
+ restmail.getVerificationLink({ email: mfbEmail }, done);
+ },
"open verification link in second session and re-enter password": function(done, link) {
secondBrowser.chain({onError: done})
.get(link)

0 comments on commit cb9bb4c

Please sign in to comment.