Skip to content

Commit

Permalink
chore: add local test configuration for IE (#3410)
Browse files Browse the repository at this point in the history
The project comes with confgiguration for local IE build supporting ES5
and for SouceLabs remote configuration for IE browsers, but it has no
relevant entry to allow tests on local setup. This are minimal changes
to allow local tests with IE on Windows box.

Example syntax:
```bash
yarn test --browsers IENoExtensions --configuration ie
```

There is no configuration for size of the launched IE instance, so in
order to have tests depending on the viewport size - like overlays
positioning on top/left/right/bottom, the IE instance has been
configured to run in the kiosk mode ('-k').
  • Loading branch information
peterblazejewicz authored and maxokorokov committed Oct 17, 2019
1 parent 6d6bbd9 commit ad2800d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -100,6 +100,7 @@
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-firefox-launcher": "^1.0.0",
"karma-ie-launcher": "^1.0.0",
"karma-jasmine": "~2.0.1",
"karma-sauce-launcher": "^2.0.2",
"marked": "^0.7.0",
Expand Down
5 changes: 5 additions & 0 deletions src/karma.conf.js
Expand Up @@ -12,6 +12,7 @@ module.exports = function (config) {
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-firefox-launcher'),
require('karma-ie-launcher'),
require('karma-coverage-istanbul-reporter'),
require('@angular-devkit/build-angular/plugins/karma')
],
Expand All @@ -31,6 +32,10 @@ module.exports = function (config) {
ChromeNoExtensions: {
base: 'Chrome',
flags: ['--disable-extensions']
},
IENoExtensions: {
base: 'IE',
flags: ['-extoff', '-k']
}
},
reporters,
Expand Down
9 changes: 8 additions & 1 deletion yarn.lock
Expand Up @@ -5480,6 +5480,13 @@ karma-firefox-launcher@^1.0.0:
dependencies:
is-wsl "^2.1.0"

karma-ie-launcher@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/karma-ie-launcher/-/karma-ie-launcher-1.0.0.tgz#497986842c490190346cd89f5494ca9830c6d59c"
integrity sha1-SXmGhCxJAZA0bNifVJTKmDDG1Zw=
dependencies:
lodash "^4.6.1"

karma-jasmine@~2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/karma-jasmine/-/karma-jasmine-2.0.1.tgz#26e3e31f2faf272dd80ebb0e1898914cc3a19763"
Expand Down Expand Up @@ -5748,7 +5755,7 @@ lodash.templatesettings@^4.0.0:
dependencies:
lodash._reinterpolate "^3.0.0"

lodash@^4.14.14, lodash@^4.16.6, lodash@^4.17.11, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.2.1:
lodash@^4.14.14, lodash@^4.16.6, lodash@^4.17.11, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.2.1, lodash@^4.6.1:
version "4.17.15"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548"
integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==
Expand Down

0 comments on commit ad2800d

Please sign in to comment.