StackpineEmail us

Pineflow · Tests pass but the feature is broken

← All fixes
Build

Tests pass but the feature is broken

Means your tests cover the wrong layer. AI loves to write tests against the implementation it just wrote, tautological tests. Add one end-to-end smoke test per feature that uses the feature like a user would. Playwright or even a manual checklist beats 200 unit tests that all assert the implementation didn't change.

Prompt to paste
Prompt
Write one end-to-end smoke test for [feature] that exercises it the way a real user would, from entry point to outcome, not against the implementation details. Avoid tautological tests that just assert the current code. If a real-user path can't be tested as-is, tell me what's untestable and why.