cucumberjs --version 1.2.2
protractor --version 4.0.1
Both installed globally via npm
I keep getting this error after upgrading to cucumberJs version above.
Failures:
1) Scenario: Get records from DB
e2e\features\transac.feature:7
Step: Given I am logged in as "username" with "password"- e2e\features\transac.feature:8
Step Definition: e2e\steps\loginSteps.js:17
Message:
function timed out after 5000 milliseconds
1 scenario (1 failed)
1 step (1 failed)
0m06.608s
Please note I included my env.js above in the cucumber options block and here's my env.js content:
exports.config = {
// set to "custom" instead of cucumber.
framework: 'custom',
// path relative to the current config file
frameworkPath: require.resolve('./node_modules/protractor-cucumber-framework'),
// relevant cucumber command line options
cucumberOpts: {
require: [
conf.paths.e2e + '/steps/**/*Steps.js',
conf.paths.e2e + '/support/env.js',
],
format: 'pretty'
}
};
Here's the env.js file // features/support/env.js
var configure = function () {
this.setDefaultTimeout(60*1000);
};
module.exports = configure;