RSSAmplifier

Blog

Better world by better software

Gleb Bahmutov PhD

glebbahmutov.comRSS feed ↗30 posts

Latest posts

Can't Stop, Won't Stop

Let's say you have a long-ish Cypress test and you know a place where it might fail. You want to stop / skip the test commands.

What Needs To Retry

Imagine a typical application that loads some data. The app starts in the initial state, starts loading, then one of 3 possible states ar

When It Reloads

Have you ever encountered end-to-end test error "... failed because the page updated as a result of this command, but you tried to c

Has It Not Happened Yet

Let me get back to the testing of negative states one

DOM State Clarity With cy.depends Command

Imagine a simple web application scenario: you click on a button. App tries to load some data. The data might load, or the backend might

Cypress cy.prompt Vs Recording Vs Coding

Cypress-the-company is putting a lot of effort behind its cy.prompt command (which I recreated

Upgrade Cypress To TypeScript v6

Finally, it has happened. Cypress v15.14 supports TypeScript v6. This is a big deal

Testing A11y Using Cypress And wick-a11y Plugin

I have a little web app called Gametime I use to keep track of players during youth socc

String Types For E2E Tests

Every individual item sold on Mercari.com has an id that looks like m<number> .

Public Environment Variables For Your Tests Using cypress-expose Plugin

Recently Cypress announced a change in how it will handle environment variables. Variables were always public and accessible to the appli

Migrating From Cypress.env To cy.env and Cypress.expose Methods

Cypress v15.10.0 has announced a big switch coming in v16 - the new way of dealing

How To Publish To NPM From GitHub Actions

At the end of 2025, NPM registry <a href="https://github.blog/changelog/2025-12-09-npm-classic-tokens-revoked-session-based-auth-and-cli-

Check Every Box In Cypress Tests Without Flake

Imagine you are testing a TodoMVC application, and you need to complete all items. You simply click every checkbox and confirm the applic

Cypress Dependencies Through A Docker Image

If you are testing a website, the DEV dependencies do not change very often. You might bump Cypress version once in a while, add or upgra

Reclaiming My Attention

This year I am reclaiming my attention span away from my iPhone. Lately, I have noticed that while reading or working, I reach for my pho

NPM Install And Copilot Instructions

Here is something I have noticed about my projects and using Copilot lately. When I add a new NPM dependency, I also update the Copilot i

Testing Loading Skeletons

Loading skeletons are displayed while the real data is loading. For example, the login passwords are displayed after 1 second in the GIF

How To Type Function Mocha Context With Cypress Aliases

In Cypress you can save values under aliases which is pretty handy. You can get the aliased value

Test Auto-healing Is A Red Flag

Well, I am happy to report Cypress-the-company is <a href="https://www.cypress.io/blog/ai-self-healing-in-cypress-reliable-tests-with-ful

Branded Types

Let's say you need to specify a timeout or wait in your end-to-end Cypress tests. You would use milliseconds <figure class="highl

Cypress vs Playwright Advent Calendar 2025

This year I am producing "Cypress vs Playwright Advent Calendar" on my Cypress Tips

Verify Then Control The Data

Imagine we are testing a web page that receives two numbers from the server and then shows their sum <img src="../images/verify-th

Copilot Instructions Example

I have described using Use Copil

Never Use The Page As The Source Of Truth

Imagine you are testing a web page showing the purchase receipt. <img src="../images/source-of-truth/receipt.png" alt="The receipt

Cypress vs Playwright; Browser Included

Recently I watched a pretty good video Cypress vs Playwright side-by-side coding co

Check Data Using Page Objects And Higher Order Functions

Testers and developers often use page objects to interact with their web applications via DOM elements. Let's create a page object fo

Diff Feature Flags Before Running Tests

As I explained in my previous blog post on feature flags and testing, you need

Tell Copilot Where To Find Test Selectors

I have shown how to use Copilot instructions fil

Add Types To Your Local Storage During End-to-End Tests

If your web application stores data locally in the localSt

AI Picks Tests To Run On A Bug

In the blog post Test Tag Suggestions Using AI I