Closed laetus007 closed 10 months ago
I am unable to replicate the issue using your config; changing a test cause the test to reload on my PC.
I tried with Cypress 12.7.0
and 13.4.0
images.
On 13.4.0
image reloaded using Chrome 118
, Edge
118and Firefox
118, Electron
114`.
I don't use mutegen but you could try disabling it completely to see if its interferring.
The only difference my config file generally has user: "${DDEV_UID}:${DDEV_GID}"
which makes sure your file permissions are correct. But removing it didn't affect my tests.
Perhaps you could provide a repo that I could test against?
FYI @tyler36 it's trivial to turn on mutagen on WSL2, does no harm, and you can see if it's related. Mutagen works fine on linux/wsl2.
@tyler36 - thank you greatly for your time on this - I went down a deep rabbit hole this morning and I've concluded that I just don't think the watchForFileChanges will work with the M1 Mac setup at this time; however, I believe there are sufficient work arounds that do not make this a deal breaker.
ddev cypress-open
if I want to visually inspect an issue with the caveat that I will need to restart it if there are any changesHere are my findings from this morning
user: "${DDEV_UID}:${DDEV_GID}"
as this prevents newer versions of cypress running properly on the Mac"watchForFileChanges": true
in my cypress.config.js did nothing (as expected since this is the default behavior)"${DDEV_APPROOT}:/e2e"
is way to inclusive and ended up with a Error: EMFILE: too many open files. We run a multisite setup where our docroot will include copies of the files/images from the multiple sites among other things.ddev cypress-open
- "${DDEV_APPROOT}/cypress.config.js:/e2e/cypress.config.js"
- "${DDEV_APPROOT}/cypress:/e2e/cypress"
Thank you posting about your experience and further research. Its always good to know what works, and doesn't, for other people.
If you find the workaround to troublesome, you can just install cypress locally; Cypress only needs to be able to see the website so just point it to https://myproject.ddev.com
.
PRs are welcome if you think we can improve the docs or configuration. Happy testing!
Hi! I have a working ddev cypress install on a M1 Mac. My only hiccup is that when I run
ddev cypress-open
and update a test while the instance is still running, it does not pick up the changes. I thought the issue may be mutagen related so I randdev mutagen sync
and then will reload the tests. The test will continue to look for the old values without picking up the changes. I was just wondering if you have a fix for this. At the moment, I'm just killing the open test suite and runningddev cypress-open
again.Here is my current config. Thank you in advance for any feedback.
`services: cypress: image: cypress/included:13.4.0 container_name: ddev-${DDEV_SITENAME}-cypress labels: com.ddev.site-name: ${DDEV_SITENAME} com.ddev.approot: ${DDEV_APPROOT} networks: [default,ddev_default]