0

I have one test that I created and I split it into 4 different its. The first one is responsible for visiting the website, logging in, etc. and the other ones are responsible for testing different logic.

All tests are dependent on each other, although they are split into 4 its.

I noticed that this way, API calls made in the last its return 302 status code instead of 200 - which doesn't happen if I put all the test logic under the same it.

What's the reason for this?

Ken White
  • 123,280
  • 14
  • 225
  • 444
Gambit2007
  • 3,260
  • 13
  • 46
  • 86
  • 1
    _"All tests are dependant on each other, although they are split into 4 `it`s"_ - don't do that. Various state is cleared between tests, which should be independent. – jonrsharpe Apr 26 '22 at 18:58
  • This might help [Cypress not properly intercepting leaflet map tile calls](https://stackoverflow.com/questions/71620242/cypress-not-properly-intercepting-leaflet-map-tile-calls/71624371#71624371) if your intercept is failing because of caching. – Fody Apr 26 '22 at 21:26

0 Answers0