remix-run / indie-stack

The Remix Stack for deploying to Fly with SQLite, authentication, testing, linting, formatting, etc.
https://remix.run/stacks
MIT License
1.13k stars 315 forks source link

Cypress custom commands doesn't load #251

Closed nnhjs closed 1 year ago

nnhjs commented 1 year ago

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

Yes

Steps to Reproduce

Run cypress test in local npm run test:e2e:dev

Expected Behavior

We can run cypress test successfully

Actual Behavior

cy.cleanupUser is not a function
Because this error occurred during a after each hook we are skipping the remaining tests in the current suite: smoke tests

Screen Shot 2023-08-23 at 11 10 09

ngtrthinh169TPC commented 1 year ago

I'm having the same problem with cy.cleanupUser is not a function. image

Weirdly I'm also seeing the same problem with the grunge stack yesterday. Thinking there might be something between Cypress and Remix setups in general, not only this stack.

MichaelDeBoey commented 1 year ago

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

Fix in #254