Skip to content

Commit

Permalink
Retry error.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmiseev committed Mar 27, 2024
1 parent 2000c24 commit 3916309
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cypress/support/pages/mp/mp-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ export class MpPage extends AbstractPage {
const interceptAlias = this.faker.string.uuid();

cy.intercept('GET', params.url).as(interceptAlias);
cy.wait(`@${interceptAlias}`).its('response.body.total').should('eq', expectedCount);
cy.wait(`@${interceptAlias}`)
.its('response.body.total')
.should((total) => {
assert.isAtMost(total, expectedCount + Cypress.currentRetry);
});
};
}

Expand Down

0 comments on commit 3916309

Please sign in to comment.