Hi, I am trying to optimize my tests.Whenever i ma...
# best-practices
c
Hi, I am trying to optimize my tests.Whenever i make any changes to the spec file and try to execute them cypress doesn't seem to recognize the changes immediately.Is there any workaround or solution to it?I don't refer to cypress-watch-and-reload plugin
s
I have to delete the cache of my running Cypress browser regularly because of this issue. I tried many many solutions and this is the only thing that works for me.
t
@cold-author-79999 did you inherit your repo or set it up from scratch yourself? I only ask because this feature can be turned on or off via Cypress config so it could have been disabled by someone else previous. Search "watchForFileChanges" within this page: https://docs.cypress.io/guides/references/configuration e.g. under
cypress.config.js
"e2e" section:
Check if you have this set and if it's false, change to true for it to detect changes as you save your spec.
c
hey doesn't seem to work
i added a line and that line hasn't been called no matter what
w
Hi! Could you share some details like what version of Cypress you are using, what operating system and browser, and what testing type (e2e or component). Is this new or has it happened every time you use Cypress? It sounds like a bug, and it might be related to one or two other hard-to-replicate issues around live reloading.
c
yes sure.It is cypress v 12.3, macOS X, electron browser.Not everytime, but i noticed this in around 2 weeks time.
i cleared the cache but still it didn't help
4 Views