From 9b01e781566e74bd63e05b75b4989c1b46e47c83 Mon Sep 17 00:00:00 2001 From: Sboonny Date: Mon, 19 Sep 2022 18:12:51 +0000 Subject: [PATCH] test cypress interaction and if it accounts for mobile design --- .../default/learn/header/menu-accessibility.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 cypress/integration/default/learn/header/menu-accessibility.js diff --git a/cypress/integration/default/learn/header/menu-accessibility.js b/cypress/integration/default/learn/header/menu-accessibility.js new file mode 100644 index 00000000000..0a480cc0f4c --- /dev/null +++ b/cypress/integration/default/learn/header/menu-accessibility.js @@ -0,0 +1,10 @@ +// test if mobile search bar affect the test +describe('Default Navigation Menu', () => { + it('should be possible to open the menu with the tab keybound.', () => { + cy.visit('/learn'); + cy.get('toggle-button-nav') + .focus() + .type('{enter}{tab}{tab}') + .should('a', 'focus'); + }); +});