Added cucumber tests (wip)
This commit is contained in:
parent
d798aa2cdf
commit
fb3511b264
11 changed files with 272 additions and 11 deletions
39
cucumber/features/steps_definitions/hooks.js
Normal file
39
cucumber/features/steps_definitions/hooks.js
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
/* 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);
|
||||
});
|
||||
};
|
||||
}());
|
||||
Loading…
Add table
Add a link
Reference in a new issue