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

Filip Hric 13th May 2025 TO BE OR NOT TO BE (TECHNICAL) Hey Reader!There’s an ongoing debate in the QA world on whether it makes sense to get technical or not. I remember having a fairly heated debate on this last November at Agile Testing Days in Potsdam. My talk titled "Test like a developer, develop like a tester" argued that we should put the effort as testers to become experts in the software we test. And yes, that includes having a fair bit of developer knowledge. Jason Arbon called...

Filip Hric 23rd April 2025 AN APP CAN BE A HOME-COOKED MEAL He Reader,Today I’d love to share with you one of the best blogposts I’ve ever read. It warmed my heart and inspired me greatly. The blogpost is called "An app can be a home-cooked meal". Give it a read. It taps into something that’s really close to my heart - using your talents to make a world a better place - starting with your family. While you can be a world-renowned chef, it will always feel different when you cook a meal for...

Filip Hric 24th March 2025 Playwright in Production Hello Reader,I’ll be doing a live webinar with my friend Jonathan tomorrow. We’ll be talking about different use-cases of Playwright in production. Interestingly we’ll focus on use cases that are outside of testing, like web-scraping, monitoring and automation workflows. Make sure to register and join us! Register here Blogposts, discussions, events In Case You Missed It – Code (r)evolution Livestream Last week, Jonathan and I unpacked...