Skip to content

Commit

Permalink
Cypress Tests Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
david emioma committed Mar 25, 2024
1 parent fb09b1c commit fc9385d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cypress/e2e/update-product.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,14 @@ describe("Update a product", () => {
.type("Nike Air Max for all men.");

//delete product item
cy.get(`[data-cy="product-item-form-${formNum}-delete"]`)
cy.get(`[data-cy="product-item-form-${formNum}-delete"]`, {
timeout: 40000,
})
.should("be.visible")
.click();

cy.get(`[data-cy="product-item-form-${formNum}"]`, {
timeout: 20000,
timeout: 40000,
}).should("not.exist");

//Add product item
Expand Down

0 comments on commit fc9385d

Please sign in to comment.