
Writing (really) good tests with Markus Oberlehner
PodRocket - A web development podcast from LogRocket
00:00
How to Decouple Your Test From the User Interface
Cypress is prone to flakiness when testing the wrong way. The side of that where you intentionally prevent usage of certain features from the testing framework, that's really interesting. By decoupling from the user interface, instead of saying in your test, select this input field with a certain label for certain CSS selector, which you shouldn't do, but many do. Instead of doing that, we say we want to find the container with the ID or something like that.
Transcript
Play full episode