process-analytics / bpmn-visualization-js

A TypeScript library for visualizing process execution data on BPMN diagrams
https://process-analytics.github.io/bpmn-visualization-js/
Apache License 2.0
216 stars 29 forks source link

[INFRA] Investigate how we could run tests with Firefox #916

Closed tbouffard closed 3 years ago

tbouffard commented 3 years ago

For end-to-end tests, we rely on Puppeteer which currently only run tests with Chromium. It seems possible to make it run Firefox: https://github.com/puppeteer/puppeteer/blob/v5.5.0/examples/cross-browser.js jest-puppeteer also provide an easy way to run firefox as far as puppeteer-firefox is a peer dependency. See https://github.com/smooth-code/jest-puppeteer/tree/v4.4.0#configure-puppeteer and https://github.com/smooth-code/jest-puppeteer/blob/v4.4.0/packages/jest-environment-puppeteer/README.md#jest-puppeteerconfigjs

tbouffard commented 3 years ago

https://github.com/process-analytics/bpmn-visualization-js/pull/1062#issuecomment-770684296 has shown that we cannot use the current jest-puppeteer firefox support.

tbouffard commented 3 years ago

See #1076 for a direct usage of Firefox with Puppeteer.