limited-room-30929
06/22/2022, 6:11 PMlimited-room-30929
06/22/2022, 6:13 PMlimited-room-30929
06/22/2022, 6:16 PM[data-cy-root]
but there is only #__cy_root
limited-room-30929
06/22/2022, 6:17 PMlimited-room-30929
06/22/2022, 6:21 PMlimited-room-30929
06/22/2022, 6:21 PMswap the #__cy_root id selector to become data-cy-root for component mounting (#20951) (0e7b555)
because this seems to have introduced a breaking changelimited-room-30929
06/22/2022, 6:22 PMgray-kilobyte-89541
06/22/2022, 7:17 PMmagnificent-finland-58048
06/22/2022, 7:19 PMmount
to cy.mount
removed @cypress/react
, and its imports from cy.js files
removed @cypress/react/plugins/react-scripts
import, injectDevServer
from plugins/index.js
applied all the knowledge here https://glebbahmutov.com/blog/cypress-v10-tips/
here's a sample migration PR
https://github.com/muratkeremozcan/react-hooks-in-action-with-cypress/pull/148gray-kilobyte-89541
06/22/2022, 7:37 PMclever-gigabyte-46296
06/22/2022, 8:00 PMmagnificent-finland-58048
06/22/2022, 8:16 PMmagnificent-finland-58048
06/22/2022, 8:17 PMlate-planet-4481
06/22/2022, 9:48 PMmagnificent-finland-58048
06/23/2022, 2:26 PMfind . -type f | grep cy.js
is your friendgray-kilobyte-89541
06/23/2022, 2:27 PMmagnificent-finland-58048
06/23/2022, 2:28 PMadorable-smartphone-87280
06/23/2022, 4:35 PMcypress-testrail-simple
plugin.gray-kilobyte-89541
06/23/2022, 4:41 PMcrooked-easter-63692
06/23/2022, 4:49 PMcrooked-easter-63692
06/23/2022, 4:49 PMcrooked-easter-63692
06/23/2022, 4:50 PMcrooked-easter-63692
06/23/2022, 4:50 PMcrooked-easter-63692
06/23/2022, 4:50 PMlate-planet-4481
06/23/2022, 5:00 PMfamous-soccer-59423
06/24/2022, 6:49 AMfamous-soccer-59423
06/24/2022, 6:51 AMdry-restaurant-29660
06/24/2022, 7:25 AMlate-planet-4481
06/24/2022, 1:18 PMdry-restaurant-29660
06/24/2022, 2:39 PM