When writing tests that interact with your UI, you will likely utilize DOM nodes to isolate elements of your application and perform actions or assertions upon those elements or contents thereof.
In this talk, Carter ranks DOM node selectors styles into three "tiers" and discusses why he favors some over others and how Cypress enables us to act like a user more than ever before. Using poor selectors is akin to building your house upon sand. You can build a mansion of a test suite using poor selectors, but the test suite will crumble violently and require constant maintenance.
On this page of the site you can watch the video online Effective DOM selector patterns. Interact like a user | Carter Capocaccia with a duration of hours minute second in good quality, which was uploaded by the user Cypress.io 24 October 2023, share the link with friends and acquaintances, this video has already been watched 2,480 times on youtube and it was liked by 55 viewers. Enjoy your viewing!