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

Cypress smoke test fails with newly initialized project #160

Closed
ngtrthinh169TPC opened this issue Aug 23, 2023 · 1 comment · Fixed by #161
Closed

Cypress smoke test fails with newly initialized project #160

ngtrthinh169TPC opened this issue Aug 23, 2023 · 1 comment · Fixed by #161

Comments

@ngtrthinh169TPC
Copy link

ngtrthinh169TPC commented Aug 23, 2023

Have you experienced this bug with the latest version of the template?

Yes

Steps to Reproduce

npx create-remix@latest --template remix-run/grunge-stack
npm run test:e2e:dev

Then go to Cypress and run the smoke test.

Expected Behavior

All the test should pass

Actual Behavior

Cypress's custom commands cannot be recognized:

  • on "should allow you to register and login":
    Type Error: cy.visitAndCheck is not a function
  • on "should allow you to make a note":
    Type Error: cy.login is not a function

image

image

I'm having the same problem with the Indie Stack

@MichaelDeBoey
Copy link
Member

This seems to be a regression in Cypress with using Cypress.Command.add

Fix in #161

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants