OhMyBug

tests/ci

Test Still Expects The Old Value

#33rare19 sightingsfirst seen August 2026

What goes wrong

Behaviour, a version string, or UI text is changed on purpose, but a test that directly depends on it still expects the old literal. Usually the suite goes red at once; if that test only runs when an optional environment (real database, browser) is available, it is skipped elsewhere and the stale expectation quietly lives on.

Example

The button text changes from 'Submit' to 'Send', and the test still asserts that 'Submit' is on screen.

Not to be confused with

Not a test correctly catching an unintended regression, not a stale pointer to evidence in docs (Drifting Evidence Pointer), and not an expected value that follows the code and stays green (Self Derived Expected Value).

Discovered by

Field notes · 4