Last active
August 29, 2015 13:56
-
-
Save jrgm/8790170 to your computer and use it in GitHub Desktop.
fix webdriver tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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