Urgent.News

What's breaking now, across hundreds of outlets.

Tech

We Deleted 382 Playwright Tests and Made Our Software More Reliable

We generated 412 Playwright E2E tests with AI and watched our CI bill hit $4,180/month while bugs slipped through. Here is why we deleted 382 of them.

We Deleted 382 Playwright Tests and Made Our Software More Reliable

On a Wednesday morning in October, PagerDuty alerted the team about billing-service v2.18.4 throwing HTTP 422 errors on the /api/v2/subscriptions/upgrade endpoint. As the reporter investigated, they discovered that 114 enterprise customers had failed to add seats to their workspaces. Despite all 412 Playwright specifications passing, the failed upgrade triggered 29 Zendesk tickets.

The issue stemmed from a single test, seat-upgrade.spec.ts, which had been generated with an AI coding assistant four months prior during an "80% E2E coverage by Q3" initiative. The test clicked "Add 5 Seats," caught a timeout while waiting for the Stripe confirmation modal, and exited with code 0. Despite its flawless appearance, it did not protect against the actual problem.

Back in May, the VP of Engineering aimed for faster release cycles without hiring additional QA engineers. This led to the rapid expansion of the Playwright test suite from 48 tests to 412, doubling the time needed to run the suite and causing developer frustration. The reporter analyzed all 412 tests, leading to the deletion of 382 of them.

AI-generated tests often contained faulty assertions, unnecessary waits, brittle CSS chains, and reliance on mocked data. These patterns contributed to the growing number of flaky tests and unreliable software.

Rewritten by urgent.news; may contain errors — check the original.

Source: hackernoon.com

Read the original at hackernoon.com →

More from HackerNoon on urgent.news

Report a problem with this story

Get the day's news by email. Daily, weekly or monthly. Sign up

More in Tech

More from Monday, 30 November 2026 →