Skip to content

Commit

Permalink
Fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rafpaf committed May 3, 2024
1 parent e638f09 commit 50bcb78
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions e2e/test/scenarios/onboarding/home/browse.cy.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describeWithSnowplow("scenarios > browse data", () => {

it("can browse to a model", () => {
cy.visit("/");
cy.findByRole("listitem", { name: "Browse data" });
cy.findByRole("listitem", { name: "Browse models" }).click();
cy.location("pathname").should("eq", "/browse/models");
cy.findByTestId("browse-app").findByText("Browse data");
cy.findByRole("heading", { name: "Orders Model" }).click();
Expand All @@ -34,6 +34,7 @@ describeWithSnowplow("scenarios > browse data", () => {
model_id: ORDERS_MODEL_ID,
});
});

it("can browse to a table", () => {
cy.visit("/");
cy.findByRole("listitem", { name: "Browse data" }).click();
Expand Down Expand Up @@ -62,7 +63,7 @@ describeWithSnowplow("scenarios > browse data", () => {
});
it("/browse/models has no switch for controlling the 'only show verified models' filter, on an open-source instance", () => {
cy.visit("/");
cy.findByRole("listitem", { name: "Browse data" }).click();
cy.findByRole("listitem", { name: "Browse models" }).click();
cy.findByRole("switch", { name: /Only show verified models/ }).should(
"not.exist",
);
Expand All @@ -82,7 +83,7 @@ describeWithSnowplowEE("scenarios > browse data (EE)", () => {
cy.findByRole("switch", { name: /Only show verified models/ });
setTokenFeatures("all");
cy.visit("/");
cy.findByRole("listitem", { name: "Browse data" }).click();
cy.findByRole("listitem", { name: "Browse models" }).click();
cy.findByRole("heading", { name: "Our analytics" }).should("not.exist");
cy.findByRole("heading", { name: "Orders Model" }).should("not.exist");
toggle().next("label").click();
Expand Down

0 comments on commit 50bcb78

Please sign in to comment.