Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Call protractor's afterEach before features run...trust me
Kind of strange to have to call this in setup, but all scenarios fail up until it is called when `restartBrowserBetweenTests` is used. Protractor is setting some internal runner state that is affecting this. angular/protractor@23bc943 Should fix #100 Should fix #88
- Loading branch information
1 parent
a40bce7
commit a8461e0
Showing
4 changed files
with
30 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
let util = require('./test_util'); | ||
|
||
describe('restart browsers between tests', function() { | ||
it('should run all scenarios successfully', function() { | ||
let cmd = | ||
'test/cucumber/conf/cucumber3Conf.js --restartBrowserBetweenTests'; | ||
|
||
return util | ||
.runOne(cmd) | ||
.cucumberVersion3() | ||
.expectExitCode(0) | ||
.expectOutput('3 scenarios (3 passed)') | ||
.expectErrors([]) | ||
.run(); | ||
}); | ||
}); |