---
title: "Better world by better software"
url: https://daily.dev/posts/better-world-by-better-software-r7we7awvx
source_url: https://glebbahmutov.com/blog/has-it-not-happened-yet
type: article
source: "Gleb Bahmutov"
published: 2026-06-10T03:01:29.873Z
updated: 2026-06-10T03:01:53.017Z
tags: ["testing", "cypress"]
reading_time: 2
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)** · 2 min read · 0 upvotes · 0 comments

## Summary

Testing negative states in Cypress requires care: asserting that something 'does not happen' can pass prematurely if the application hasn't finished processing yet. The post explains two reliable approaches — waiting for a positive state indicator (e.g., a CSS class being set) before checking the negative assertion, or adding an explicit timeout to ensure the application has had enough time to potentially trigger the unwanted action. Using a local counter variable alone is insufficient; the key is knowing *when* to safely assert absence.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://glebbahmutov.com/blog/has-it-not-happened-yet>

## Similar posts on daily.dev

- [Better world by better software](https://daily.dev/posts/better-world-by-better-software-afxfv6uwc) · 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-r7we7awvx)
