Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Firefox' was not found in cypress/included:5.0.0 #363

Closed
liunate opened this issue Aug 23, 2020 · 9 comments
Closed

'Firefox' was not found in cypress/included:5.0.0 #363

liunate opened this issue Aug 23, 2020 · 9 comments
Assignees

Comments

@liunate
Copy link

liunate commented Aug 23, 2020

Use container cypress/included:5.0.0 at github actions shows firefox was not found or unsupported error in run log:

Run yarn test-cypress-ci
  yarn test-cypress-ci
  shell: sh -e {0}
  env:
    CYPRESS_BROWSER: firefox
...
yarn run v1.22.4
$ start-server-and-test start 9966 'cypress run --browser $CYPRESS_BROWSER --headless'
...
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.

p.s. Environment var CYPRESS_BROWSER is substituted in npm script test-cypress-ci:
"test-cypress-ci": "start-server-and-test start 9966 'cypress run --browser $CYPRESS_BROWSER --headless'"

Full log can be viewed at ci job log

The git workflow file is here

I also tried reverting to previous image such as 4.12.1 but it shows the same error

Strangely the very same image cypress/included:5.0.0 works perfectly at local with command:

docker run -it -v $PWD:/e2e -w /e2e -e CYPRESS_BROWSER=firefox --entrypoint=yarn cypress/included:5.0.0 test-cypress-ci
@liunate
Copy link
Author

liunate commented Aug 31, 2020

FYI the package.json scripts is:

"test-cypress-ci": "start-server-and-test start 9966 'cypress run --browser $CYPRESS_BROWSER --headless'",

@daniel-cottone
Copy link

Also seeing this on cypress/browsers:node12.14.1-chrome85-ff81

@paolocattani
Copy link

Same problem with cypress/browsers:node12.13.0-chrome78-ff70

@bahmutov
Copy link
Contributor

@liunate since you run on GitHub Actions, why don't you use https://github.com/cypress-io/github-action ? Then 90% of the workflow yml file is probably unnecessary :)

@bahmutov
Copy link
Contributor

Could you try cypress/included:6.0.0?

@paolocattani
Copy link

paolocattani commented Nov 24, 2020

I solved the problem setting user as 1001 ( I'm using this image inside GitHub pipeline )

container:
      image: cypress/browsers:node14.15.0-chrome86-ff82
      options: --user 1001 --shm-size=2g

@bahmutov
Copy link
Contributor

Nice, but @paolocattani I would suggest simply running the Cypress tests using Firefox on GitHub Actions without Docker - because FF82 is pre-installed there.

@paolocattani
Copy link

paolocattani commented Nov 24, 2020

Nice, but @paolocattani I would suggest simply running the Cypress tests using Firefox on GitHub Actions without Docker - because FF82 is pre-installed there.

@bahmutov I just follow these instructions :D https://github.com/cypress-io/github-action#browser

image

btw thanks for your advice, take a look to the pipeline if you want

@liunate
Copy link
Author

liunate commented Dec 6, 2020

@liunate since you run on GitHub Actions, why don't you use https://github.com/cypress-io/github-action ? Then 90% of the workflow yml file is probably unnecessary :)

Thank you this is helpful 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants