You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my Angular project, to improve Unit testing I use puppeteer Chromium binary as described in the doc.
Everything worked fine until I updated to Puppeteer 19.7.x, which updated Chromium from v110.x to v111.x. Nothing else change in our project as the only thing we use is the executablePath() method to run Chromium instead of windows installed Chrome.
I did try some cross test, changed the puppeteer version, only versions before 19.7.x, cleared all cache and deleted puppeteer chromium.
I also did some tests with the chromium itself, everything works fine, running it headless in the same context does not have the same issue.
I use the latest karma-chrome-launcher version so I don't think it's a know compatibility issue.
To reproduce I generated an empty Angular project and synchronised dependencies with my project, generated a karma.conf.js file which I modified to include puppeteer a described in the documentation, which has the same issue.
// Karma configuration file, see link for more information// https://karma-runner.github.io/1.0/config/configuration-file.htmlprocess.env.CHROME_BIN=require('puppeteer').executablePath();module.exports=function(config){config.set({basePath: '',frameworks: ['jasmine','@angular-devkit/build-angular'],plugins: [require('karma-jasmine'),require('karma-chrome-launcher'),require('karma-jasmine-html-reporter'),require('karma-coverage'),require('@angular-devkit/build-angular/plugins/karma')],client: {jasmine: {// you can add configuration options for Jasmine here// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html// for example, you can disable the random execution with `random: false`// or set a specific seed with `seed: 4321`},clearContext: false// leave Jasmine Spec Runner output visible in browser},jasmineHtmlReporter: {suppressAll: true// removes the duplicated traces},coverageReporter: {dir: require('path').join(__dirname,'./coverage/angular-karma-puppeteer-issue'),subdir: '.',reporters: [{type: 'html'},{type: 'text-summary'}]},reporters: ['progress','kjhtml'],browsers: ['ChromeHeadless'],restartOnFileChange: true});};
The text was updated successfully, but these errors were encountered:
Hi !
In my Angular project, to improve Unit testing I use puppeteer Chromium binary as described in the doc.
Everything worked fine until I updated to Puppeteer 19.7.x, which updated Chromium from v110.x to v111.x. Nothing else change in our project as the only thing we use is the
executablePath()
method to run Chromium instead of windows installed Chrome.I did try some cross test, changed the puppeteer version, only versions before 19.7.x, cleared all cache and deleted puppeteer chromium.
I also did some tests with the chromium itself, everything works fine, running it headless in the same context does not have the same issue.
I use the latest
karma-chrome-launcher
version so I don't think it's a know compatibility issue.To reproduce I generated an empty Angular project and synchronised dependencies with my project, generated a
karma.conf.js
file which I modified to include puppeteer a described in the documentation, which has the same issue.Here's the files:
Package.json
karma.conf.js
The text was updated successfully, but these errors were encountered: