Backport frontend test fixes from webpack branch
What does this MR do?
To simplify the review of the webpack MR, this splits off some of the fixes that needed to be made for the Karma test runner into their own MR. Many of these changes are bugs that for one reason or another were ignored by teaspoon, but caused problems within Karma.
Are there points in the code the reviewer needs to double check?
The tests should all pass.
Why was this MR needed?
In order to make way for the changes to come within !7288 (merged)
Does this MR meet the acceptance criteria?
- Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Branch has no merge conflicts with master
(if it does - rebase it please) -
Squashed related commits together