I'm confronted with a strange error when executing my E2E tests. A broadcasted event is not consumed by one of my directives anymore and therefore a particular view is not rendered correctly.
This does not occur only when I run the test alone. And, this does not occur either when I run the test for the first time (singleRun=true) or the first run in debug mode.
The implemented event logic itself works fine.
What can cause this strange behavior?
My set up:
- Karma version: 0.10.10
- Angular version: 1.3.0
My Karma Config:
module.exports = function(config) {
config.set({
basePath: '',
files: [
'test/e2e/*.js'
],
singleRun: true,
frameworks: ['ng-scenario', 'jasmine-jquery', 'jasmine'],
browsers: ['Chrome'],
plugins: [
'karma-chrome-launcher',
'karma-jasmine-jquery',
'karma-jasmine',
'karma-junit-reporter',
'karma-ng-scenario'
],
junitReporter: {
outputFile: 'test-result.xml'
},
urlRoot: '/_karma_/',
proxies: {
'/': 'http://localhost:' + (process.env.PORT ? process.env.PORT : '8080') + "/"
},
});
};
Any hints are very much appreciated!
Thanks, Sebastian