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`:
496
+
497
+
```js
498
+
cy.mockGraphQL() // for GraphQL usage with use_cassette, see cypress/support/commands.rb
499
+
```
500
+
501
+
#### use_cassette usage
502
+
503
+
There is nothing special to be called during the Cypress scenario. Each request is wrapped with `VCR.use_cassette`.
504
+
Consider VCR configuration in `cypress_helper.rb` to ignore hosts.
505
+
506
+
All cassettes will be recorded and saved automatically, using the pattern `<vcs_cassettes_path>/graphql/<operation_name>`
507
+
508
+
444
509
## `before_request` configuration
445
510
446
511
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