todos-contra-el-fuego-web/cucumber/features/steps_definitions/hooks.js
2018-02-01 17:00:30 +01:00

39 lines
1.2 KiB
JavaScript

/* global client */
(function () {
module.exports = function () {
this.Before(() => {
// global.expect = require('@xolvio/jasmine-expect').expect;
if (!this.initMyCmds) {
client.addCommand('waitForClickable', function elementClickable(selector, timeout) {
this.waitForVisible(selector, timeout);
this.waitForEnabled(selector, timeout);
});
this.initMyCmds = true;
}
// server.call('fixtures/reset');
// server.call('emailStub/reset');
// server.call('emailStub/stub');
// server.call('fixtures/stubCloudFrontClient');
// go to the page first so we have access to the Meteor object
// console.log('Before all tests...');
// client.url(process.env.ROOT_URL);
/* client.executeAsync(function (done) {
* var customer = {
* id: 'randomId',
* email: 'me@example.com',
* subscriptions: {
* data: [{
* current_period_start: 1436716844,
* current_period_end: 1436716844
* }]
* }
* }; */
// this call will stub stripe both on the client and server
// Meteor.call('stripeStub/stub', customer, done);
});
};
}());