silly-laptop-48411
09/16/2022, 8:50 AMcy.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?cold-van-45410
09/16/2022, 9:22 AMlively-eve-50395
09/16/2022, 9:50 AMlively-eve-50395
09/16/2022, 9:52 AMlively-eve-50395
09/16/2022, 9:53 AMacceptable-hamburger-48790
09/16/2022, 10:28 AMprehistoric-restaurant-72560
09/16/2022, 1:02 PMgray-kilobyte-89541
09/16/2022, 1:28 PM.should
callback? That is not going to worklimited-gold-56062
09/16/2022, 1:44 PMlively-eve-50395
09/16/2022, 1:53 PMmelodic-bear-95863
09/16/2022, 2:01 PMfierce-easter-87739
09/16/2022, 4:23 PMnutritious-army-46708
09/16/2022, 4:31 PMgray-kilobyte-89541
09/16/2022, 6:48 PMjs
cy.origin(..., () => {
cy.visit('/')
cy.url()...
cy.request(...).its('body')
}).then(emailAddress => {
..
})
sticky-judge-13753
09/16/2022, 7:21 PMnutritious-knife-49146
09/16/2022, 8:38 PMnutritious-army-46708
09/16/2022, 9:01 PMgray-kilobyte-89541
09/16/2022, 10:10 PMnutritious-army-46708
09/16/2022, 10:56 PMicy-exabyte-68383
09/17/2022, 7:05 PMicy-exabyte-68383
09/17/2022, 7:08 PMeager-london-10753
09/17/2022, 8:22 PMicy-exabyte-68383
09/18/2022, 6:36 AMstrong-cat-47196
09/18/2022, 10:53 AMfew-farmer-48800
09/18/2022, 4:25 PMmicroscopic-toddler-9116
09/18/2022, 5:41 PMfew-farmer-48800
09/18/2022, 6:30 PMmicroscopic-toddler-9116
09/18/2022, 7:06 PMicy-exabyte-68383
09/18/2022, 7:18 PMorange-cricket-43285
09/18/2022, 8:33 PM