how can i stub the xhr request status code and response #26490
Unanswered
sjoseph777
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.
Uh oh!
There was an error while loading. Please reload this page.
-
This is what I'm trying and it does not work - cy.fixture(


siteData.json
).then((apiSiteData) => {cy.intercept('GET', '/api/sites', {statusCode: 200, apiSiteData } ) })
The status code , is still 401 Unauthorized,
Am I missing something? This is how I would like it to be


Beta Was this translation helpful? Give feedback.
All reactions