Hello!
I am facing an issue with closing the browser when a test fails. Currently, the browser closes successfully when the test passes.
The dependencies I am using are:
"cucumber": "^0.9.2",
"gulp": "~3.9.0",
"gulp-protractor": "^2.1.0",
"protractor": "3.0.0",
"protractor-cucumber-framework": "^0.3.2",
"selenium-standalone": "4.8.0",
$ node --version
v5.3.0
$ npm --version
3.5.2
My Gulp-protractor setup looks like this:
// Code for running protractor tests
var args = require('yargs').argv;
module.exports = function(gulp, plugins) {
return function (done) {
// Configuration settings go here
};
};
And my protractor.config
file includes the following:
exports.config = {
// Configuration settings for Protractor
};
However, my tests fail and the browser remains open, causing memory leaks on the CI server. How can I resolve this issue?
Your help would be greatly appreciated!
EDIT: The failing step in my test script is as follows:
this.Then(/^I see that the slider has moved/, function (done) {
// Step implementation code
});