Skip to content

Test suite incorrectly reports a failure on clean run #44

@btoone

Description

@btoone

When I run Cypress without first having ran the app, I get a test failure caused by a SyntaxError. However, if I then run the app for the first time, then re-run the test suite, that error is gone and the suite is now green. See the attached screenshots.

After running the app and the tests are green there are no noticeable file changes that would explain this behavior. Also I don't even have to load the app in the browser, I just run npm run dev then kill the process and re-run the test and then it passes.

I am able to reproduce this locally by cloning, deleting the repo and cloning again. I tried updating to [email protected] to see if that would take care of the problem but it didn't.

Cypress is now at 10.4 but the upgrade to 10x requires some migration so I thought I would ask if anyone can duplicate just in case the cause is something strange about my local env.

Here is my node info reported by Cypress > Settings

System Version 18.7.0
Node.js Path /Users/brandon/.asdf/installs/nodejs/18.7.0/bin/node

Screenshots

Screen Shot 2022-08-14 at 5 33 39 AM

Screen Shot 2022-08-14 at 5 38 25 AM

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