cypress-docker-images icon indicating copy to clipboard operation
cypress-docker-images copied to clipboard

Cannot find firefox browser with cypress/included:10:4:0 inside github workflows

Open AtofStryker opened this issue 2 years ago • 2 comments

Currently, when importing the cypress/included:10:4:0 docker image into github workflows, firefox cannot be found. I have tried a few different things, including moving firefox to a directory in the $PATH, but haven't had luck. Running the docker image with the daemon locally works fine. It's just when used inside github workflows.

I have a reproduction that includes the actions as well as commits for attempted work arounds

AtofStryker avatar Aug 10 '22 19:08 AtofStryker

I can confirm this is also happening to me when using the --browser firefox flag. I thought it was specific to this error: https://github.com/cypress-io/cypress/issues/23326 but after changing to chrome, it appears the same error is present, but the tests actually start running.

Tigatok avatar Aug 15 '22 21:08 Tigatok

We're seeing the same issue with cypress 9.6.1 on all of the cypress/browser images I've tried, which includes:

  • cypress/browsers:node16.14.2-slim-chrome100-ff99-edge
  • cypress/browsers:node16.14.2-slim-chrome103-ff102
  • cypress/browsers:node16.13.2-chrome100-ff98

All of them are getting this error (minus "edge" for the non-edge images), same as in @AtofStryker's reproduction repo:

Can't run because you've entered an invalid browser name.

Browser: firefox was not found on your system or is not supported by Cypress.

Cypress supports the following browsers:
 - electron
 - chrome
 - chromium
 - chrome:canary
 - edge
 - firefox

You can also use a custom browser: https://on.cypress.io/customize-browsers

Available browsers found on your system are:
 - chrome
 - edge
 - electron

awesomeunleashed avatar Aug 30 '22 16:08 awesomeunleashed

Duplicate of https://github.com/cypress-io/cypress-docker-images/issues/363

mjhenkes avatar Jan 19 '23 22:01 mjhenkes