delisdeli
delisdeli

Reputation: 869

Testing Meteor Facebook login with Cucumber

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

Answers (1)

Elijah Lofgren
Elijah Lofgren

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

Related Questions