Avoid Cypress Pyramid of Doom

1 · Gleb Bahmutov · July 28, 2021, 2:24 a.m.
Imagine an application with two input fields and a numerical result element. In the test we need to verify that the result is the sum of the inputs.123456<body> <p>Calculator</p> <div>a = <input name="a" type="number" value="1" /></div> <div>b = <input name="b" type="number" value="5" /></div> <div>a + b = <span id="result">6</span></div></body>You can find this page and the spec file in the repo bahmutov/cypress-multiple-aliases.📺 If you would rather watch the explanation from this blog pos...