Skip to content

Commit

Permalink
Fixed shampoo timeout test for a second time
Browse files Browse the repository at this point in the history
  • Loading branch information
p2635 committed Jan 26, 2024
1 parent b4695c1 commit 19007dc
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions cypress/e2e/chainAndRetry.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
);
});

0 comments on commit 19007dc

Please sign in to comment.