diff options
author | 2020-03-05 20:16:36 +0530 | |
---|---|---|
committer | 2020-03-05 14:53:55 +0000 | |
commit | 4d894a76cd0405ea76c605ed4480dd5af48754ff (patch) | |
tree | 2d81eff62d52e62e46fef43d92de920e541d0360 /portal-FE-os | |
parent | 4c6f6a443cb2e6effa995e77d56689c1c2dab4ad (diff) |
puppetter package to support Headless browser
puppetter package added
Issue-ID: PORTAL-837
Change-Id: Ia3ca7b48889ca564c937a5db356d309a5325fd88
Signed-off-by: jegadeeshbabu3 <jegadeesh.babu@att.com>
Diffstat (limited to 'portal-FE-os')
-rw-r--r-- | portal-FE-os/package.json | 4 | ||||
-rw-r--r-- | portal-FE-os/src/karma.conf.js | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/portal-FE-os/package.json b/portal-FE-os/package.json index 77cef690..4371bc4d 100644 --- a/portal-FE-os/package.json +++ b/portal-FE-os/package.json @@ -61,11 +61,13 @@ "jasmine-core": "~2.99.1", "jasmine-spec-reporter": "~4.2.1", "karma": "~3.0.0", - "karma-chrome-launcher": "~2.2.0", + "karma-chrome-launcher": "^2.2.0", "karma-coverage-istanbul-reporter": "~2.0.1", "karma-jasmine": "~1.1.2", "karma-jasmine-html-reporter": "^0.2.2", + "karma-phantomjs-launcher": "^1.0.4", "protractor": "~5.4.0", + "puppeteer": "^2.1.1", "sonar-scanner": "^3.1.0", "ts-node": "~7.0.0", "tslint": "~5.11.0", diff --git a/portal-FE-os/src/karma.conf.js b/portal-FE-os/src/karma.conf.js index b6e00421..154ad588 100644 --- a/portal-FE-os/src/karma.conf.js +++ b/portal-FE-os/src/karma.conf.js @@ -1,6 +1,7 @@ // Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html +process.env.CHROME_BIN = require('puppeteer').executablePath() module.exports = function (config) { config.set({ basePath: '', @@ -10,6 +11,7 @@ module.exports = function (config) { require('karma-chrome-launcher'), require('karma-jasmine-html-reporter'), require('karma-coverage-istanbul-reporter'), + require('karma-phantomjs-launcher'), require('@angular-devkit/build-angular/plugins/karma') ], client: { @@ -25,7 +27,7 @@ module.exports = function (config) { colors: true, logLevel: config.LOG_INFO, autoWatch: true, - browsers: ['Chrome'], + browsers: ['ChromeHeadless'], singleRun: false }); };
\ No newline at end of file |