Skip to content

Commit

Permalink
Clean up alert.accept()
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanLorenzo committed May 23, 2016
1 parent 244af65 commit 10c0313
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/selenium/lib/view/alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ AlertWrapper.prototype = {
},

accept() {
return this._waitForAlert().then(alert => alert.dismiss())
return this._waitForAlert().then(alert => alert.accept())
},

_waitForAlert() {
Expand Down
2 changes: 1 addition & 1 deletion test/selenium/lib/view/sign_up/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ SetUpView.prototype = {
},

acceptAlert: function() {
return this.alert.accept;
return this.alert.accept();
},

};
Expand Down

0 comments on commit 10c0313

Please sign in to comment.