From f599278605ae9b8833c05193d32f4065ada66f32 Mon Sep 17 00:00:00 2001 From: Lemmy Adams Date: Fri, 6 Oct 2023 15:45:14 +0100 Subject: [PATCH] Moved file to better location and renamed --- .../adapt-contrib-boxMenu.cy.js} | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) rename test/e2e/{menuPage.cy.js => menu/adapt-contrib-boxMenu.cy.js} (59%) diff --git a/test/e2e/menuPage.cy.js b/test/e2e/menu/adapt-contrib-boxMenu.cy.js similarity index 59% rename from test/e2e/menuPage.cy.js rename to test/e2e/menu/adapt-contrib-boxMenu.cy.js index 48f54704a..448cd8e78 100644 --- a/test/e2e/menuPage.cy.js +++ b/test/e2e/menu/adapt-contrib-boxMenu.cy.js @@ -1,5 +1,5 @@ -import Content from '../../src/course/en/contentObjects.json' -import Course from '../../src/course/en/course.json' +import Content from '../../../src/course/en/contentObjects.json' +import Course from '../../../src/course/en/course.json' describe('Menu Page', () => { beforeEach(() => { @@ -24,19 +24,4 @@ describe('Menu Page', () => { }) }) }) - - it('should have an expandable drawer', () => { - cy.get('.drawer[aria-expanded="true"]').should('not.exist') - cy.get('.drawer[aria-expanded="false"]').should('exist') - - cy.get('button[data-event="toggleDrawer"]').click() - - cy.get('.drawer[aria-expanded="true"]').should('exist') - cy.get('.drawer[aria-expanded="false"]').should('not.exist') - - cy.get('button.drawer__close-btn').click() - - cy.get('.drawer[aria-expanded="true"]').should('not.exist') - cy.get('.drawer[aria-expanded="false"]').should('exist') - }) });