All those who claimed to be “Automated Testers” and Promoted “Headless Testing” were Fake

At least before 2023! Headless Chrome is a separate implementation.

Zhimin Zhan

--

The title is not “clickbait”. A Chrome Developers article published on 2023–02-22 provides solid proof. Read on.

Recently, one former mentee told me that she had one automated test that only failed when running in headless mode but was fine in normal mode. My advice: “Don’t run in headless mode”.

Table of Contents:
· When an automated e2e test fails only in headless mode … 😱
·
Headless is a separate implementation of the browser
·
Why “Automated Testers” Promote Headless Testing are Fake?
·
Headless Mindset rooted in Programmer’s Unit Testing
You may limit headless testing is a small scope

When an automated e2e test fails only in headless mode … 😱

During coaching, I encountered the situation “test fails only in headless mode” too. It was quite frustrating. Why? The test worked fine in normal mode (I could see it). However, the same test execution failed in headless. Without seeing the app (in the browser), I

--

--