https://cypress.io logo
I need help on cypress upgrade . please help# upgr...
# i-need-help
a
I am looking for help on upgrading cypress project that was not built by me . It is now in the old version of below 9 and I would want to upgrade to the latest stable version . Please. Guide me on which version I should be choosing to upgrade and also on how to approach . Will it mr smooth or difficult and how long should it take ?
s
Should be easy to do

https://www.youtube.com/watch?v=DE7FPEX8SWY&feature=youtu.be&ab_channel=ResterTest

you can also have a look at the guide for extra help
a
Hi thanks for quick response and Is cypress 10 latest ?
s
no it is no the latest. It was the first version that brought a bigger change from the previous version.
a
So should I be migrating to 10 first and then to 12 ?sorry for asking more questions just to get more info on whether I should migrate to 12 again ?
w
You can go straight to 12. Roughly speaking, the breaking changes are: 10 changed UI, config format, & folder structure/file naming conventions 11 took Component Testing out of beta 12 changes how some commands work to fix detached dom errors. There’s a Wizard process that helps you migrate from 9 or below, that should do all the work for you for the structural changes and will get tests running. If any test is failing in 12 that used to pass, it’s likely due to command changes. You might need to modify some commands to get them passing, though that’s rare. There’s no real need to migrate one major at a time, I would try installing latest, run cypress open, and the app will guide you through the steps (and probably do them for you).
s
Also watch for testIsolation if tests do not run anymore 🙂
a
Thanks a ton @Mark . It can’t be more clear than this . 🙏
Thanks Fenz for an over the top suggestion
2 Views