commercetools / commercetools/sunrise-spa
Mock grapqhl requests in cypress
Nobody has claimed this yet.
- Dominant language
- SCSS
- Stars
- 51
- Forks
- 77
- PR merge metrics
- No merged PRs in 30d
Description
Currently all e2e tests are connecting directly to our backend, which will eventually slow our CI down. But Cypress doesn't provide support for mocking graphql requests, they are working on it. Even though there are some workarounds for this, we'll wait until they offer the support to start mocking, or until our CI is too slow, whatever happens first.
https://github.com/cypress-io/cypress/issues/95
https://github.com/commercetools/fe-chapter-notes/issues/28
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names Cypress end-to-end tests and links to Cypress issue #95 about GraphQL mocking. Start by checking whether Cypress now supports the required mocking; otherwise monitor the linked issue and reassess when CI becomes too slow. Done would mean the e2e tests mock GraphQL requests instead of connecting directly to the backend.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cypress, graphql
- Domain
- api, testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100