Automating fixtures in Cypress #14847
Unanswered
kagov
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am currently trying to capture all XHR requests originating from a page and want to automate the process of fixtures. I have looked into Github issues, tried to overwrite the intercept command, tried overriding XMLHttpRequest object and also tried a few cypress events but none of them seems to work.
So in a page if I have 4 test cases that make 8 API calls to the server I want to intercept all the calls automatically write fixtures (only the first time, will try some sort of a dry run) and then this can be referenced in the cy.intercept calls.
Beta Was this translation helpful? Give feedback.
All reactions