RSS Amplifier

Cypress Testing Tips & Tricks · Jan 24, 2026

Cypress Tips January 2026

0
Sign in to vote or save

Gleb Bahmutov · Cypress Testing Tips & Tricks

Many years ago, I spoke at the AssertJS conference (guess the conference main topic!). My two main points were that Cypress end-to-end testing needs:

  1. Component testing

  2. Automatic analysis of failed vs successful tests

Find the slides here and the video on YouTube. It was a good talk, still slaps.

I did write component testing, which is one skill that if you master, you will never look back.

And now Sebastian Clavijo Suero wrote a plugin that is just 100% pure awesomeness. See cypress-flaky-test-audit repo and read the blog post “CYPRESS-FLAKY-TEST-AUDIT: thriving in the Cypress ‘Dual-Verse’ for once!“. The main idea behind the plugin: capture each test command with its timing. If the test fails and then passes using test retries give you all important information side by side so you can understand why the test might have failed. The plugin can show the command comparison information using DevTools console, terminal, and even HTML report:

Test passes after one or more retries
Audit plugin shown the commands for failed and successful retries.

Focusing on test retries is the right choice. Tests that passed immediately after failing show the problems with test design, rather than external factors. The test attempts are close temporarily, have the same test code, so the question is mostly of timing.

I wonder how this plugin can help solve my “Cypress Flaky Tests Exercises”, will investigate.

Speaking of Sebastian Clavijo Suero, read his blog post “Cypress.Promise.all() and cy.mapChain(): Two Hidden Gems for Cypress You Won’t Let Go Once You Try Them” (yes, Sebastian is great. No, he isn’t good at writing short titles) to learn about cy.mapChain command from my cypress-map plugin. I guarantee that if you have some gnarly-looking piece of Cypress test code, this plugin can help you rewrite it into short, concise, and elegant version.

You might not like Playwright as much as I do, but it never hurts to know more tools. This is the list of all December “Cy Vs Pw” posts I did, collected here and on my blog for your information.

Happy 2026!

No posts

Read the original on cypresstips.substack.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.