Closed vanam closed 3 months ago
Hey @vanam thank you for reporting this. 🙏 We're using these e2e tests in our deployment CI/CD process. When used as a template, they are no longer needed since they are designed for internal use and won't work well with customized projects.
We had a long running discussion about what to do with them when used as a template in create-refine-app
. Final decision was to move them out of the examples to a separate directory and run there. I've assigned @BatuhanW to the issue and he'll do the necessary changes.
We'll update here when we have the PR ready 🚀
Describe the bug
Running Cypress tests on examples fails because of misconfiguration.
I was able to fix it for my example by: 1) altering
cypress.config.ts
2) adding fixture
cypress/fixtures/demo-auth-credentials.json
3) addingcypress/support/e2e.ts
(with hacked content from this repo):Steps To Reproduce
1) Install an example eg.
npm create refine-app@latest -- --example auth-antd
. 2) Start app usingnpm run dev
3) Runnpm run cypress:run
Expected behavior
It is expected to run successfully Cypress tests against an example app.
Packages
Additional Context
No response