Skip to content

Commit

Permalink
Deployment issues #7
Browse files Browse the repository at this point in the history
  • Loading branch information
david emioma committed May 7, 2024
1 parent da59144 commit cdfa19f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/search.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ describe("Search For Products", () => {
});

it("Should show no result for product that does not exists", () => {
cy.get('[data-cy="product-search-bar-input"]').first().type("test product");
cy.get('[data-cy="product-search-bar-input"]').first().type("random");

cy.get('[data-cy="product-search-bar-input-search"]').first().click();

cy.wait(15000);
cy.wait(20000);

cy.get('[data-cy="product-search-empty"]').should("exist");
});
Expand Down
12 changes: 6 additions & 6 deletions cypress/e2e/store-search.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,16 @@ describe("Users Interactions", () => {

cy.get('[data-cy="store-product-search-bar-input"]')
.should("exist")
.type("test");
.type("random");

cy.get('[data-cy="store-product-search-bar-input-search"]')
.should("exist")
.first()
.click();

cy.wait(10000);
cy.wait(15000);

cy.url().should("include", "?search=test");
cy.url().should("include", "?search=random");
});

it("Should show no result for product that does not exists", () => {
Expand All @@ -90,11 +90,11 @@ describe("Users Interactions", () => {

cy.get('[data-cy="store-product-search-bar-input"]')
.should("exist")
.type("test");
.type("random");

cy.get('[data-cy="store-product-search-bar-input-search"]').first().click();

cy.wait(10000);
cy.wait(15000);

cy.get('[data-cy="store-product-search-empty"]').should("exist");
});
Expand All @@ -110,7 +110,7 @@ describe("Users Interactions", () => {

cy.get('[data-cy="store-product-search-bar-input-search"]').first().click();

cy.wait(10000);
cy.wait(15000);

cy.get('[data-cy="store-product-search-empty"]').should("not.exist");
});
Expand Down

0 comments on commit cdfa19f

Please sign in to comment.