Flaky tests are like...


Filip Hric

18th February 2025

FLAKY TESTS

Hello Reader,
I’ve been working on a project to reduce test flakes. A project that has over 1200 end-to-end tests in a fairly complex system. As I’ve been slowly trying to reach zero, a pattern emerged.

It seems like there are common themes when it comes to test flakiness. I shared some of them in my presentation at CypressConf, but lately it seems that flakiness in end-to-end tests is mostly a timing issue. A situation where test and application fall out of sync.


Blogposts, discussions, events

Flaky Tests are like two cars...

Flaky tests make debugging a nightmare and can shake confidence in your test suite. I’ve been looking into the most common causes of flaky tests and how to deal with them.

​Read more about it here→​

Tester Was Here – A Poem for Testers

Richard Bradshaw wrote a brilliant poem called Tester Was Here, capturing the essence of what it means to be a tester. It’s a fun, insightful read that every tester will relate to.

​Listen the poem →​

99 Cypress Tips – Did You Miss the Discount?

Missed the original discount for my 99 Cypress Tips course? You might still be eligible for a location-based discount!

​Check if you qualify →​


Test automation tip

Cypress allows you to select only elements that are visible by utilizing :visible pseudo selector from jQuery. This can be quite useful especially when testing submission forms that tend to have hidden input fields.

 1  it(':visible elements', () => {
 2  
 3    const data = ["Filip", "Hric", "90210", "filip@filiphric.sk", "chuckN0rri$"]
 4  
 5    cy.visit('/')
 6  
 7    cy.get('input:visible').each((el, i) => {
 8      cy.wrap(el)
 9        .type(data[i])
10    })
11  
12    cy.contains('button', 'Register')
13      .should('be.enabled')
14  
15  })

Meme of the week


Filip Hric

Teaching testers about development, and developers about testing

filip@filiphric.sk, Senec, Slovakia 90301
​Unsubscribe · Preferences​

Filip Hric

Sign up for weekly tips on testing, development, and everything related. Unsubscribe anytime you feel like you had enough 😊

Read more from Filip Hric

Hello Reader, AI can generate code, arguably with a pretty decent quality. That’s not news anymore. The question that’s been forming in my head all week is different: how do we decide what should go into production? Writing code is not the hard part (arguably, it never was). The hard part is making sure the right code ships and the wrong code doesn’t. And right now, that selection problem is becoming the defining challenge of AI-assisted development. Last week has definitely showed this....

Hey Reader, If you’re reading this, chances are you care about quality. Coming from QA, I never stop looking at the apps I build and systems I use through the lens of quality. Now, with more and more code being written by AI, this question matters more than ever. Many people wonder whether AI is even capable of delivering quality. I think it is. Though it’s worth remembering that quality is multidimensional. You can always have more or less of it. When it comes to AI and specifically LLMs,...

Hey Reader, It’s been a while since I’ve issued a newsletter, but I’m hoping to get back on track. There are just so many interesting things happening in the world of IT that I want to share with you all. But I’ve decided to change my approach to writing this newsletter a little bit. In the past, my main goal was to come up with some idea or some thought and basically write a post. This put a lot of pressure on me and I never wanted to force myself into writing a newsletter when I had nothing...