This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Add wclickIfExists on the eyedee.me create account button for IE.

  • Loading branch information...
1 parent 0f93ab5 commit 253c9c0167673a77572cbaea9eef6b68e0e87522 @shane-tomlinson shane-tomlinson committed Nov 15, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 automation-tests/tests/add-primary-to-primary.js
@@ -58,6 +58,7 @@ runner.run(module, {
// continuing past that button
.wtype(CSS['eyedee.me'].newPassword, primaryEmail.pass)
.wclick(CSS['eyedee.me'].createAccountButton)
+ .wclickIfExists(CSS['eyedee.me'].createAccountButton)
.wwin()
.wtext(CSS['123done.org'].currentlyLoggedInEmail, function(err, text) {
done(err || assert.equal(text, primaryEmail.email));
@@ -85,6 +86,7 @@ runner.run(module, {
// continuing past that button
.wtype(CSS['eyedee.me'].newPassword, secondPrimaryEmail.pass)
.wclick(CSS['eyedee.me'].createAccountButton)
+ .wclickIfExists(CSS['eyedee.me'].createAccountButton)
.wwin()
.wtext(CSS['123done.org'].currentlyLoggedInEmail, function(err, text) {
done(err || assert.equal(text, secondPrimaryEmail.email))
@@ -95,7 +97,7 @@ runner.run(module, {
"shut down remaining browsers": function(done) {
browser.quit(done);
}
-},
+},
{
suiteName: path.basename(__filename),
cleanup: function(done) { testSetup.teardown(done) }

0 comments on commit 253c9c0

Please sign in to comment.