Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cy.task('recordHar') timed out after waiting 20000ms causing flaky tests #307

Open
chmielsen opened this issue Jun 30, 2023 · 0 comments
Open
Assignees
Labels
Type: bug Something isn't working

Comments

@chmielsen
Copy link

Description
cy.task('recordHar') timed out after waiting 20000ms. error causes

Steps to reproduce

  1. Enable HAR plugin in the repo to run as part of GitHub Actions for Cypress tests

Expected behavior
Recording HARs from the run tests

Actual behavior
cy.record timing out.

Notes

  • Cypress version 12.9.0
  • the behavior is weird: first spec run in the worker passed without the failure
  • then ALL the other specs have the first test case fail with the cy.record timing out
  • all test cases in the spec later pass
  • I couldn’t find anything in the logs, Reason: net::ERR_ABORTED errors might be red herrings - I see them failing for the early in the logs, for the first test run that’s passing
  • I actually couldn’t find anything about the recordHar other issues. I’m happy to do more debugging, but I wasn’t sure what tools to use

Stack trace
Warning: large
6_Cypress run.txt

@chmielsen chmielsen added the Type: bug Something isn't working label Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants