Repository navigation
ci(test): run Cypress E2E workflows in Chrome - #1266
Conversation
|
As a side note: the cypress action GH action documentation states that the @JulienVig two points:
|
JulienVig
left a comment
There was a problem hiding this comment.
All good thanks! Being explicit on the CI browser sounds fine to me. However I think we should set a fallback browser.
| with: { name: all-builds } | ||
| - uses: cypress-io/github-action@v7 | ||
| with: | ||
| browser: chrome |
There was a problem hiding this comment.
Can you look into chrome-for-testing (doc)? mabe this would be a good option for the CI
There was a problem hiding this comment.
Do we want to pin the browser version? I don't think we're doing anything particularly fancy + if our tests were to actually fail on a new chrome version it'd be desirable to know. Also we'd have to keep updated the version we use if we decide to pin it. I'll look into it more deeply that's just my first impression
There was a problem hiding this comment.
I was also wondering about this, I also think that failing on different chrome versions is what we want even if it could be flaky depending on the CI machine. Maybe we can ensure that we log the browser version in the CI for troubleshooting?
There was a problem hiding this comment.
Cypress already logs the major version https://github.com/epfml/disco/actions/runs/40660156098/job/122722420865?pr=1266#step:6:36
Not sure if we need more granularity than that but I added logging of the whole version number
Cypress is officially planning to deprecate its bundled Electron test browser:
In addition, Electron exhibits subtle behavioral and rendering divergences in headless Linux environments (e.g. forced
--disable-gpuand software fallback quirks).This PR:
browser: chrome).DISCO_E2E_BROWSERenvironment variable (e.g.DISCO_E2E_BROWSER=firefox,chrome,edge).docs/CONTRIBUTING.md.