question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

firefox failing on circleCI

See original GitHub issue

I don’t know if this is an issue with cypress or something missing on circleCI. I think this line of code installs chrome and firefox.

https://github.com/wikimedia/wikipedia-kaios/blob/try-firefox-browser/.circleci/config.yml#L5

https://hub.docker.com/r/circleci/node

Current behavior:

When I try to run cypress run --browser=firefox on circleCII get this error image

Desired behavior:

tests should run the same as on local / with electron

Test code to reproduce

https://github.com/wikimedia/wikipedia-kaios/blob/try-firefox-browser/package.json#L18

Versions

4.5.0 https://github.com/wikimedia/wikipedia-kaios/blob/try-firefox-browser/package.json#L45

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jpitacommented, Jun 1, 2020

Oh my god, @jennifer-shehane i’m sorry. we run the app in a different way in our local environment 🤦 . I now changed the way to run the app in the CI and the tests are running as expected.

Sorry for wasting your time.

0reactions
jennifer-shehanecommented, Jun 1, 2020

I can recreate this when running Cypress within Firefox in cypress open, so this has nothing to do with headless or CircleCI specifically. You should always try to run the tests locally with the installed browser since it will be easier to debug the issue than in a CI container.

Also, you should always run the situation outside of Cypress. I can see this error outside of Cypress, when running your application in Firefox also. So, this is a bug in your app - your app doens’t work in Firefox and Cypress has caught this bug for you.

Screen Shot 2020-06-01 at 4 32 04 PM

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to Invoke browser(Chrome or Firefox) - CircleCI Discuss
I have configured config.yml with Maven(Java), its working in local machine but not with CircleCI. Please find the config.yml and error ...
Read more >
Installing the Latest Version of Firefox in CircleCI
The Latest version of Firefox fails to install due to missing libpango depdenencies that are not being resolved by apt.
Read more >
circleci/browser-tools@1.4.0
Install a variety of browsers and tools for browser testing. Includes Chrome, FireFox, ChromeDriver and GeckoDriver.
Read more >
Ideas page JS bug on Firefox? - CircleCI Discuss
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://circleci.ideas.aha.io') does not match the recipient ...
Read more >
(firefox:28877): GConf-WARNING **: Client failed to connect to ...
I'm trying to use selenium 3 and Firefox 55, but I'm seeing a lot of lines in the output with the following messages...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found