Skip to content
Snippets Groups Projects
Unverified Commit 799fe86c authored by Gustavo Saiani's avatar Gustavo Saiani Committed by GitHub
Browse files

Test collection sidebar responsiveness (#16896)

parent 29af7704
No related branches found
No related tags found
No related merge requests found
import { restore, sidebar } from "__support__/e2e/cypress";
describe("collections sidebar (metabase#15006)", () => {
beforeEach(() => {
restore();
cy.signInAsAdmin();
cy.visit("/collection/root");
});
it("should be able to toggle collections sidebar when switched to mobile screen size", () => {
cy.icon("close").should("not.be.visible");
cy.icon("burger").should("not.be.visible");
// resize window to mobile form factor
cy.viewport(480, 800);
sidebar().should("not.be.visible");
cy.icon("burger").click();
cy.icon("burger").should("not.be.visible");
sidebar().within(() => {
cy.findByText("First collection");
cy.icon("close").click();
});
cy.icon("burger");
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment