Discover more from Cypress Testing Tips & Tricks
Cypress Tips February 2023
Sending some ❤️ to your tests
Do YOU want to run Cypress tests in parallel for free? Then you need to read “Run Cypress Specs In Parallel For Free” and use cypress-split plugin. Works with GitHub Actions, CircleCI, GitlabCI, and any other CI really. Do you want a combined HTML report at the end, with screenshots and videos? I looked into Mochawesome reporters, and even added a single option to merge parallel test results to my reusable Cypress workflows, see the blog post “The Battle of Cypress Mochawesome Reporters” below.
Here are my latest blog posts about Cypress testing:
Run Cypress Specs In Parallel For Free 👈 This post will save you 💰💰💰
Trying ArrowJS (includes Vite and component testing)
cy.loginstead of code comments, use cy-spok
async / await
The last link (The Zen of Cypress Data Setup) goes to the heart (well, it is February after all) of the discussion: do you need
async/await inside your Cypress tests? In the blog post, I refactor the data setup from one method to another and back. Can you guess which code is using async/await and which one is straight Cypress? Which one is easier to code and understand?
I know many people would disagree with my opinion. Here is my call: give me a public repo that you want to use
await instead of Cypress chains, and I will show how to refactor it to be as clear as the code on the right side of the image above.
In March I will attend the local Massachusetts conference called NERD. I will speak about the new and shiny Node.js test runner.
I have been recording tiny videos teaching my Cypress tips & tricks. The full playlist now includes more than 400! Here are some of the videos published in the last 3 weeks:
When I look at the video analytics, it is nothing but 💕💕💕💕 Thank you.
Do you have a question about Cypress that does not have an answer at https://cypress.tips/search? Let me know, maybe it will be a topic for my future video or blog post. Just be warned: it might become a lesson in my paid Cypress Courses! 😉