Skip to content

Instantly share code, notes, and snippets.

@jrgm
Last active August 29, 2015 13:56
Show Gist options
  • Save jrgm/8790170 to your computer and use it in GitHub Desktop.
Save jrgm/8790170 to your computer and use it in GitHub Desktop.
fix webdriver tests
diff --git a/automation-tests/tests/remove-email.js b/automation-tests/tests/remove-email.js
index 8e7e0de..16defd1 100644
--- a/automation-tests/tests/remove-email.js
+++ b/automation-tests/tests/remove-email.js
@@ -140,6 +140,8 @@ runner.run(module, {
browser.chain({onError: done})
.wwin()
.get(link)
+ .wtype(CSS['persona.org'].signInForm.password, secondaryPassword)
+ .wclick(CSS['persona.org'].signInForm.finishButton, secondaryPassword)
.wtext(CSS['123done.org'].currentlyLoggedInEmail, function(err, text) {
done(err || assert.equal(text, secondaryEmail));
});
diff --git a/automation-tests/tests/returning-user.js b/automation-tests/tests/returning-user.js
index 15b609a..415a7ed 100644
--- a/automation-tests/tests/returning-user.js
+++ b/automation-tests/tests/returning-user.js
@@ -77,6 +77,8 @@ runner.run(module, {
browser.chain({onError: done})
.wwin()
.get(link)
+ .wtype(CSS['persona.org'].signInForm.password, secondary.split('@')[0])
+ .wclick(CSS['persona.org'].signInForm.finishButton, secondary.split('@')[0])
.wtext(CSS['123done.org'].currentlyLoggedInEmail, function(err, text) {
done(err || assert.equal(text, secondary));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment