- Use
cy.spy()
to verify the behavior of a function. - Use
cy.stub()
to verify and control the behavior of a function. - Use
cy.clock()
andcy.tick()
to control time. - Stub
window.fetch
to control server responses. - Replace
window.fetch
with a polyfill that uses XHR and is loaded only for tests
See individual spec files in cypress/integration folder.