refine interception assertion

This commit is contained in:
mahula 2023-05-27 13:50:26 +02:00
parent 56e61db444
commit eecdb66024

View File

@ -7,7 +7,7 @@ Then('I see all the reported posts including the one from above', () => {
hostname: 'localhost',
}).as('getReports')
cy.wait(['@getReports']).then((interception) => {
cy.wait(['@getReports'],{ timeout: 10000 }).then((interception) => {
console.log('Cypress interception:', interception)
cy.wrap(interception.response.statusCode).should('eq', 200)
cy.wrap(interception.request.body)