---
title: "Better world by better software"
url: https://daily.dev/posts/better-world-by-better-software-afxfv6uwc
source_url: https://glebbahmutov.com/blog/what-needs-to-retry
type: article
source: "Gleb Bahmutov"
published: 2026-07-28T14:52:36.673Z
updated: 2026-07-28T15:10:09.145Z
tags: ["testing", "cypress"]
reading_time: 4
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Better world by better software

**[Gleb Bahmutov](https://daily.dev/sources/glebbahmutov)** · 4 min read · 0 upvotes · 0 comments

## Summary

When testing apps that load data, naive tests that only check the happy path can be slow and uninformative when they fail. By explicitly handling all possible app states (success, empty, error) using the cypress-if plugin's cy.depends command, tests can fail immediately with clear messages instead of waiting for a timeout. For transient failures like empty data, the cypress-recurse plugin enables in-place page reloads rather than full test retries, making tests faster and more resilient while still providing accurate failure diagnostics.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://glebbahmutov.com/blog/what-needs-to-retry>

## Similar posts on daily.dev

- [Better world by better software](https://daily.dev/posts/better-world-by-better-software-r7we7awvx) · Gleb Bahmutov · 0 upvotes · 0 comments
- [Better world by better software](https://daily.dev/posts/better-world-by-better-software-h1ajuzlat) · Gleb Bahmutov · 0 upvotes · 0 comments
- [Better world by better software](https://daily.dev/posts/better-world-by-better-software-bzx7lh13v) · Gleb Bahmutov · 0 upvotes · 0 comments

---

Tags: [#testing](https://daily.dev/tags/testing), [#cypress](https://daily.dev/tags/cypress)

[View this post on daily.dev](https://daily.dev/posts/better-world-by-better-software-afxfv6uwc)
