thankful-lunch-80439
10/02/2021, 5:53 AMjs
cy.wait("@rating", { timeout: 60000 }).then((xhr: any) => {
expect(xhr.statusCode).to.eq(200);
const quotestatus = xhr.response.body.isReferred;
cy.wrap(xhr.response.body.isReferred).as("quoteisrefBool");
});
a 60 second timeout is quite generous too 😅
Also, I could be wrong, though i think this may be clear for you too
js
cy.wait("@rating", { timeout: 60000 }).then({ response}) => {
expect(response.statusCode).to.eq(200);
cy.wrap(response.body.isReferred).as("quoteisrefBool");
});
thankful-lunch-80439
10/02/2021, 5:40 PM