https://cypress.io logo
I have `cy.intercept('GET', '**/foo/**/bar').as('g...
# help
s
I have
cy.intercept('GET', '**/foo/**/bar').as('getSomething');
which returns 200 as expected with
cy.wait('@getSomething').its('response.statusCode').should('eq', 200);
. However when I re-run the same test in Cypress (v7.7.0, browser Chrome 105) that same call fails due to
statusCode = 304
. If I stop then start the test, the first time passes but always the subsequent executions return 304. I would always expect that for each time the test is run the response is 200. Why does the HTTP status change and how do I stop this for this and all tests?
12 Views