Skip to content

Commit

Permalink
add tests for shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
Andi Braimllari committed May 6, 2024
1 parent 2e0c5d7 commit a1b2cd4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cypress/e2e/shortcuts.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ describe("Shortcuts", () => {
});
});

cy.get("#offcanvasStart").should("not.be.visible");
cy.get("body").type("m");
cy.get("#offcanvasStart").should("be.visible");
cy.get("body").type("M");
cy.get("#offcanvasStart").should("not.be.visible");

cy.get('[data-test="modal-dialog"]').should("not.be.visible");
cy.get("body").type("h");
cy.get('[data-test="modal-dialog"]').should("be.visible");
Expand Down Expand Up @@ -76,6 +82,12 @@ describe("Shortcuts", () => {
});
});

cy.get("#offcanvasStart").should("not.be.visible");
cy.get("body").type("M");
cy.get("#offcanvasStart").should("be.visible");
cy.get("body").type("m");
cy.get("#offcanvasStart").should("not.be.visible");

cy.get('[data-test="modal-dialog"]').should("not.be.visible");
cy.get("body").type("h");
cy.get('[data-test="modal-dialog"]').should("be.visible");
Expand Down

0 comments on commit a1b2cd4

Please sign in to comment.