Skip to content

Commit

Permalink
fix e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
rafpaf committed May 3, 2024
1 parent ffa5f2b commit 2f21de8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion e2e/test/scenarios/onboarding/home/browse.cy.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ describeWithSnowplow("scenarios > browse data", () => {

it("can browse to a model", () => {
cy.visit("/");
cy.findByRole("listitem", { name: "Browse data" }).click();
cy.findByRole("listitem", { name: "Browse data" })
.click()
.then(null, () => {
cy.findByRole("heading", { name: "Browse" }).click();
cy.findByRole("listitem", { name: "Browse data" }).click();
});
cy.location("pathname").should("eq", "/browse/models");
cy.findByTestId("browse-app").findByText("Browse data");
cy.findByRole("heading", { name: "Orders Model" }).click();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ function MainNavbarView({
}
}, [handleCloseNavbar]);

const [expandBrowse, setExpandBrowse] = useUserSetting(
const [expandBrowse = true, setExpandBrowse] = useUserSetting(
"expand-browse-in-nav",
);
const [expandBookmarks, setExpandBookmarks] = useUserSetting(
const [expandBookmarks = true, setExpandBookmarks] = useUserSetting(
"expand-bookmarks-in-nav",
);
const debounceTimeout = 200;
Expand Down

0 comments on commit 2f21de8

Please sign in to comment.