From 39163091c9a95014929834cced9323bda782f9b1 Mon Sep 17 00:00:00 2001 From: Dmytro Asieiev Date: Wed, 27 Mar 2024 18:52:34 +0300 Subject: [PATCH] Retry error. --- cypress/support/pages/mp/mp-page.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cypress/support/pages/mp/mp-page.ts b/cypress/support/pages/mp/mp-page.ts index 7a9f444e..2c2f957e 100644 --- a/cypress/support/pages/mp/mp-page.ts +++ b/cypress/support/pages/mp/mp-page.ts @@ -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); + }); }; }