Reputation: 869
I have the following template code
login.html
<button id="facebook-login" class="button button-block button-positive">
Login with Facebook
</button>
login.js
Template.login.events({
'click #facebook-login': function () {
Meteor.loginWithFacebook();
}
});
How can I test the positive and negative paths with xolvio:cucumber?
Upvotes: 2
Views: 220
Reputation: 1477
There is now a facebook-fake package which can be found here: https://atmospherejs.com/dropz/facebook-fake
After installing it you'll find that you don't have to have your test code enter a username/password in the window that the real facebook auth packages opens up instead the logins should always work (due to being faked out).
Upvotes: 0