Skip to content

Cypress component test crashes within github actions #703

Open
@AndersPfyl

Description

@AndersPfyl

Logs and screenshots
image

Versions

  • What is this plugin's version? 3.12.3
  • What is Cypress version? 13.3.0
  • What is your operating system? Github runner uses: ubuntu-latest-8-cores
    • Ubuntu 22.04.3 LTS
  • What is the shell? bash
  • What is the Node version? 16.20.2
  • How do you instrument your application? Instanbul
    • .babelrc contains: {"presets": ["next/babel"], "plugins": ["istanbul"]}
  • When running tests, if you open the web application in regular browser, and open DevTools, do you see window.__coverage__ object? Can you paste a screenshot?
    • Coverage works locally (see screenshots), but issue is on runner.
    • image
    • image
  • Is there .nyc_output folder? Is there .nyc_output/out.json file. Is it empty? Can you paste at least part of it so we can see the keys and file paths?
    • image
  • Do you have any custom NYC settings? No
  • Do you run Cypress tests in a Docker container? The runner does

Describe the bug
I have tried adding code coverage to our cypress tests. The coverage works locally but when running within github actions it seems the addition of instrumentation causes cypress to crash with the error There was an error reconnecting to the Chrome DevTools protocol. Please restart the browser. after the first cypress test tries to run.

Link to the repo
Our repo is private and confidential, this will limit some things I can share to help troubleshoot the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions