This thread is trying to answer question "Why doesn't Gmail sign-in work from the globalSetup.ts file when running with Chrome in headless mode and how to fix it?"
If you are interested in figuring out another case with similar behaviour, I've created a new post on my experience here https://discord.com/channels/807756831384403968/1162276444634873947
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email firstname.lastname@example.org.