This thread is trying to answer question "Why does this test pass in headed mode but not in headless mode?"
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 luc@ray.run.