I'm using playwright v1.42.1
and I have a project in my playwright config file which is a dependency for other projects. This dependency project only runs a signup function and saves the data in storageState using:
await page.context().storageState({ path: STORAGE_STATE_PRO })
so i don't have to run the signup on each test.
The tests work locally, but when I run them in github actions with shards where the signup project runs once in each shard, the signup fails, throws the below error and all the tests in the shard get skipped. Any idea what could be causing the storageState to throw a timeout?
Error: browserContext.storageState: Test timeout of 60000ms exceeded.
page.context().storageState({ path: STORAGE_STATE_PRO });
This happens most of the times when i run my tests in github, but sometimes the error isn't thrown and the tests pass
This thread is trying to answer question "What could be causing the `storageState` to throw a timeout error when running Playwright tests in GitHub Actions with shards, especially in relation to Stripe payment processing?"
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].