From a1b2cd44a91b1d2a19142ea6cdb404c12c86e258 Mon Sep 17 00:00:00 2001 From: Andi Braimllari <> Date: Mon, 6 May 2024 18:32:31 +0200 Subject: [PATCH] add tests for shortcuts --- cypress/e2e/shortcuts.cy.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cypress/e2e/shortcuts.cy.js b/cypress/e2e/shortcuts.cy.js index 0584293c..68c9ee45 100644 --- a/cypress/e2e/shortcuts.cy.js +++ b/cypress/e2e/shortcuts.cy.js @@ -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"); @@ -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");