Closed RashmiRamdas closed 11 months ago
perhaps the url is not proper? http://localhost:3000/
instead of https
URL is correct, it is https://localhost:3000/showcase. Some of the tests pass with this config and some random tests fails with above error.
Also, created ticket with playwright https://github.com/microsoft/playwright/issues/15642 for this issue. They have confirmed its related to codecept module as there is no Playwright._after in the stock Playwright library.
Is this still valid?
// close other sessions
try {
const contexts = await this.browser.contexts();
const currentContext = contexts[0];
if (currentContext && (this.options.keepCookies || this.options.keepBrowserState)) {
this.storageState = await currentContext.storageState();
}
await Promise.all(contexts.map(c => c.close()));
} catch (e) {
console.log(e);
}
// await this.closeOtherTabs();
return this.browser;
Currently all storageState activity is wrapped in try/catch block
Same issue with bitbucket pipelines
any updates on this ?
Are there any updates on this?
Arrived here via https://github.com/microsoft/playwright/issues/15642. I'm experiencing this same issue on playwright v1.29.2 when I run a github action
any updates, we have the same issue in GitHub actions only. everything works well locally
my action is giving up on playwright :)
Closed for now! Feel free to reopen if you still encounter the issue with latest version and would be nice to provide a sample code to reproduce the issue.
I'm trying to run e2e tests in parallel with workers (run-workers) in Github Actions in headless mode and getting this error
browserContext.storageState: net::ERR_FAILED at https://localhost:3000/ at Playwright._after Some of the tests run successfully before throwing this error. I have observed this error only on Github Actions and works fine on local
Details