// signin.test.js
...
this.Then(/^I should be redirected to my dashboard$/, function() {
var self = this;
return this.browser
.getUrl().then(function(eUrl) {
eUrl.should.be.equal(self.url);
})
.end();
});
...
And this is the exactly same step for sign-up feature.
// signup.test.js
...
this.Then(/^I should be redirected to my dashboard$/, function() {
var self = this;
return this.browser
.getUrl().then(function(eUrl) {
eUrl.should.be.equal(self.url);
})
.end();
});
...
Running the test, I got this error for sign-in
feature:
However, the test will run properly if I
- Option 1: comment out the above js part of signin.test.js or signup.test.js.
- Option 2: change the description to another text to make them different, e.g
I should be redirected to my dashboard 12345
.
Is that a bug of cucumberjs
?
Is there anyway to workaround this problem.