I'm migrating from Puppeteer to Playwright. It works great locally, however on GitHub CI it always times out. I have my own infra integrated with Vitest. I verified that the Vite server is running correctly on CI, and everything works correctly when using Puppeteer, or when using Playwright locally.
I'm attaching my screenshot code and the GitHub Actions log.
This thread is trying to answer question "Why is Playwright timing out on GitHub Actions when trying to take screenshots, but works fine locally with Puppeteer?"
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 [email protected].