Skip to content
Snippets Groups Projects
Unverified Commit 7dd93f61 authored by Nemanja Glumac's avatar Nemanja Glumac Committed by GitHub
Browse files

Fix flaking collection tests [ci skip] (#21417)

parent c4e96ce0
Branches
Tags
No related merge requests found
......@@ -261,8 +261,12 @@ describe("scenarios > collection_defaults", () => {
it("should see a child collection in a sidebar even with revoked access to its parent (metabase#14114)", () => {
cy.visit("/");
cy.findByText("Child");
cy.findByText("Parent").should("not.exist");
cy.get("main").within(() => {
cy.findByText("Child");
cy.findByText("Parent").should("not.exist");
});
cy.findByText("Browse all items").click();
navigationSidebar().within(() => {
......@@ -554,7 +558,7 @@ describe("scenarios > collection_defaults", () => {
cy.visit("/");
// There is already a collection named "First collection" in the default snapshot
cy.findByText("First collection");
cy.get("main").findByText("First collection");
});
});
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment