From 19007dc7168ae79a28340cad752269a3f5d225e1 Mon Sep 17 00:00:00 2001 From: p2635 <4522927+p2635@users.noreply.github.com> Date: Fri, 26 Jan 2024 10:58:00 +0000 Subject: [PATCH] Fixed shampoo timeout test for a second time --- cypress/e2e/chainAndRetry.cy.js | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/cypress/e2e/chainAndRetry.cy.js b/cypress/e2e/chainAndRetry.cy.js index 8471a52..d084107 100644 --- a/cypress/e2e/chainAndRetry.cy.js +++ b/cypress/e2e/chainAndRetry.cy.js @@ -26,11 +26,17 @@ describe("Chaining and Retry", () => { cy.get("[data-cy=card]", { timeout: 10000 }); }); - it.only("get shampoo even if other cards load first", () => { - // Make sure shampoo doesn't always load first - cardsLoadRandomly(6000); + it( + "get shampoo even if other cards load first", + { + timeout: 10000, + }, + () => { + // Make sure shampoo doesn't always load first + cardsLoadRandomly(6000); - cy.get("[data-cy=card]").contains("shampoo", { timeout: 10000 }).click(); - cy.get('[data-cy="card-detail-title"]').should("have.value", "shampoo"); - }); + cy.get("[data-cy=card]").contains("shampoo").click(); + cy.get('[data-cy="card-detail-title"]').should("have.value", "shampoo"); + } + ); });