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
Possible issues with Cypress mocking? #34
Comments
Sorry for these troubles. You are right, real api is call and I made a PR to remove mock server when running cypress. For what you fix, yeah, I have some trouble with cypress and timeout (I made 30+ commits to test various workaround 😱). Can you tell me what you have in |
Also, what is your operating system ? Maybe I should add what you propose 🧐 EDIT : This stack runs github action at every PR / merge master : https://github.com/rphlmr/supa-fly-stack/runs/7480850259?check_suite_focus=true |
Hi @rphlmr, thanks for checking this out. Yeah, I feel weird to use mocks for e2e too. I guess the only issue left is the test cases fail. |
@itsmetambui really curious, I'm on macOS too 😅 The reason why github action stop failing is that I add Unless you have a Remix Grunge stack (dynamo db) doesn't mock anything in its E2E test (https://github.com/remix-run/grunge-stack/blob/main/cypress/e2e/smoke.cy.ts) or I miss something. |
Maybe you can try to increase |
@rphlmr you're right, increase |
Nice ! I have merge to 30s. Thx |
Hi again, not sure if I'm doing anything wrong but when I run the headless cypress test, the mocking doesn't seem to work and it calls my Supabase API. I can see the users and notes being created and cleaned up in my Supabase dashboard during the tests.
And since it called the actual api, test cases were failing and I had to add this check to wait for the api finishes and route changed to make it pass.
Steps to reproduce:
npx create-remix --template rphlmr/supa-fly-stack
.env
filenpm run setup
npm run test:e2e:run
The text was updated successfully, but these errors were encountered: