Skip to content

Commit

Permalink
feat:update test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Salman-Apptware committed Dec 11, 2023
1 parent 2ae73c8 commit d65ac74
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions smoke-test/tests/cypress/cypress/e2e/browse/browseV2.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,31 +46,31 @@ describe("search", () => {

cy.get("[data-testid=browse-v2")
.invoke("css", "width")
.should("match", /^\d\d\dpx$/);
.should("match", /\d\d\dpx$/);

cy.get("[data-testid=browse-v2-toggle").click();

cy.get("[data-testid=browse-v2")
.invoke("css", "width")
.should("match", /^\dpx$/);
.should("match", /\dpx$/);

cy.reload();

cy.get("[data-testid=browse-v2")
.invoke("css", "width")
.should("match", /^\dpx$/);
.should("match", /\dpx$/);

cy.get("[data-testid=browse-v2-toggle").click();

cy.get("[data-testid=browse-v2")
.invoke("css", "width")
.should("match", /^\d\d\dpx$/);
.should("match", /\d\d\dpx$/);

cy.reload();

cy.get("[data-testid=browse-v2")
.invoke("css", "width")
.should("match", /^\d\d\dpx$/);
.should("match", /\d\d\dpx$/);
});

it("should take you to the old browse experience when clicking entity type on home page with the browse flag off", () => {
Expand Down

0 comments on commit d65ac74

Please sign in to comment.