cypress: Cypress does not clear whitelisted cookies between runs during `cypress open`

When I open Cypress and click to run all tests, nothing happens.

cypress doesn't run tests

Current behavior:

If I run cypress run then yes, it runs all tests in the command line. But with cypress open it shows the UI and when I click run (all) test(s), no test is executed… it just hangs there

Desired behavior:

Open Cypress, click run all tests and actually run all tests.

Test code to reproduce

I don’t have steps to reproduce this issue but I’ve tried:

  • upgrading Cypress 3.7.0 to 4.0.1
  • upgrading Node from 12.* to 13.*
  • deleting node_modules
  • deleting /Users/Library/Caches/Cypress/
  • running the same test code, the same cypress version on a diff machine and it works ✅

So the problem seems to be my machine somehow. It was working perfectly fine until yesterday, when I tried the retry plugin, I even reported it. Then I could no longer run tests visually. Some misconfiguration? Something corrupted?

How can I reset whatever is causing Cypress to misbehave?

Versions

Cypress 4.0.1 / macOS 10.14.6 / Chrome 80

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 16 (6 by maintainers)

Most upvoted comments

After you see the error happening, could try and follow these instructions to Clear App Data to see if it fixes the failures?

Can you provide the code from your commands.js file?

I cannot recreate this behavior with our cypress-example-kitchensink repo in Chrome 80 on MacOS.

  • Open the DevTools console, are there any errors there?
  • Download Chromium 79. Does this still happen there?
  • What happens if you click an individual specfile instead of ‘Run All Tests’ button during cypress open?
  • How many tests are supposed to run total? Because we don’t really recommend ‘Run All Tests’ for a large amount of tests due to performance reasons.
  • Have you tried reducing the numTestsKeptInMemory? Does this help?

IMO, tracking down the change you made before/after this happened will probably be the clue though. Did you add some new tests or config?