Unit test your AngularJS directives that make changes to $scope as well as their own isolated scopes.
Martin, I had the same issue when I included angular-scenario.js in the 'files' section in karma.conf.js. Instead of adding angular-scenario.js to files, using the package https://npmjs.org/package/karma-ng-scenario fixed the problem for me. In short:
npm install karma-ng-scenario, then add 'ng-scenario' to the 'frameworks' section in karma.conf.js.
As of Angular 1.2, to retrieve the isolated scope, one needs to use element.isolateScope() instead of element.scope()
ReferenceError: browserTrigger is not defined
I'm testing using version 1.3.4 of angularJS and what works for me is