Skip to content

Commit

Permalink
Fixed product cypress test #3
Browse files Browse the repository at this point in the history
  • Loading branch information
david emioma committed Mar 14, 2024
1 parent dfa150e commit d78a332
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cypress/e2e/product.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,14 @@ describe("Product Form", () => {
//Category
cy.get('[data-cy="product-select"]').should("be.visible").click();

cy.get('[data-cy^="product-"]').first().click({ force: true });
cy.get('[data-cy^="product-0"]')
.should("be.visible")
.click({ force: true });

//Create Product
cy.get('[data-cy="create-btn"]').should("be.visible").click();
cy.get('[data-cy="create-btn"]')
.should("be.visible")
.click({ force: true });

cy.url({ timeout: 80000 }).should(
"eq",
Expand Down

0 comments on commit d78a332

Please sign in to comment.