GDPR written into a test
The embedded Google Map on the garage site sent every visitor's IP address without consent, around 40 requests. The map now loads on click, and a test counts requests to third-party domains. On the old version it reported 17 failures, on the new one 0.
The form said success, the photos never arrived
On FastMove the form service replied success, yet the email came without attachments. Only a test against a real temporary inbox caught it. Sending moved to a plain multipart POST, and an end-to-end test makes sure the photos arrive.
44 logos in 70 kB
One sprite instead of 44 separate files: about 452 kB raw, 70 kB with brotli. A pixel check compared every logo against the original.
The detectors have tests too
A separate script feeds the detectors a deliberately broken page and checks that each one reports an error. A test that never fails proves nothing.