The snap is configured to confine Firefox using the home interface, which allows “access to non-hidden files.” The firefox profile Cypress creates at ~/.config/Cypress/cy/production/browsers/firefox-stable/interactive is considered hidden because of the . in .config. Firefox can’t access the profile folder and gets confused and says it is already running.
A similar issue was already fixed for Chromium in #7039.
As a temporary workaround, if I run, XDG_CONFIG_HOME=$HOME/cypress cypress open so that Cypress creates and uses a firefox profile in a non-hidden directory, then Firefox opens and cypress tests run successfully.
The text was updated successfully, but these errors were encountered:
The same thing happened to me. I was always able to run Cypress tests in "interactive mode" using Firefox (which is also my Development browser) and then all of a sudden I couldn't. Took me awhile to figure out why, and doing so allowed me to finally supply the correct search string/terms to Google... where this Issue came in first in the search results.
Anyway, just confirming that this is still an issue.
Firefox is already running, but is not responding. To use Firefox, you must first close the existing Firefox process, restart your device, or use a different profile.
Started running into this myself after upgrading to Kubuntu 22.04. Sigh. $#%! snaps. I opened a PR to fix this: #21328 It was a little tricky to detect if FF is installed as a Snap but this appears to work well.