Run End-to-end Tests from Markdown Files

1 · Gleb Bahmutov · Oct. 22, 2019, 3:19 a.m.
Cypress documentation has a lot of examples. Pretty much every command, like cy.get or cy.last has several realistic examples.There is a huge problem with documentation examples - they might be wrong. Since they are copied from tests, or written by hand without running them, there is no guarantee that they are correct with respect to the latest Cypress version.We could write a real end-to-end test for each example and keep it in sync, but this requires a lot of work to stay up-to-date. What if w...