You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add to your `cypress/support/on-rails.js`, to `beforeEach`:
464
+
465
+
```js
466
+
cy.mockGraphQL() // for GraphQL usage with use_cassette, see cypress/support/commands.rb
467
+
```
468
+
469
+
#### use_cassette usage
470
+
471
+
There's nothing special to be called during Cypress scenario. Each request will be wrapped with `VCR.use_cassette`.
472
+
Consider VCR configuration in `cypress_helper.rb` to ignore hosts.
473
+
474
+
All cassettes will be recorded and saved automatically, using the pattern `<vcs_cassettes_path>/graphql/<operation_name>`
475
+
476
+
417
477
## `before_request` configuration
418
478
419
479
You may perform any custom action before running a CypressOnRails command, such as authentication, or sending metrics. Please set `before_request` as part of the CypressOnRails configuration.
0 commit comments