silly-laptop-48411
09/16/2022, 4:07 AMInterceptor so it might look like:
ts
cy.wait("@getSomething").then(interceptor => {
expect(interceptor.response?.statusCode).to.be.eq(200);
expect(interceptor.response?.body.data.package.insert.errors).to.have.length(0);
}
I noticed however that using the its().should() alternative meant I wasn't dealing with a potentially undefined value interceptor.response so I wasn't sure if I was handling it correctly.