From ba69c8b083f6171d4beea129891331192862b9b4 Mon Sep 17 00:00:00 2001 From: kamre Date: Thu, 1 Jul 2021 10:57:46 +0700 Subject: [PATCH] Cypress test for hiding and showing the sidebar with active board added: (#659) - active board is essential because it can cover the show button, - presence of sidebar heading is used to check if sidebar is visible. --- webapp/cypress/integration/createBoard.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/webapp/cypress/integration/createBoard.js b/webapp/cypress/integration/createBoard.js index fe7c69cf7..0802bc0f5 100644 --- a/webapp/cypress/integration/createBoard.js +++ b/webapp/cypress/integration/createBoard.js @@ -31,6 +31,14 @@ describe('Create and delete board / card', () => { should('have.value', boardTitle); }); + it('Can hide and show the sidebar with active board', () => { + // Hide and show the sidebar + cy.get('.Sidebar .heading ~ .Button').click(); + cy.get('.Sidebar .heading').should('not.exist'); + cy.get('.Sidebar .show-button').click(); + cy.get('.Sidebar .heading').should('exist'); + }); + it('Can rename the board view', () => { // Rename board view const boardViewTitle = `Test board (${timestamp})`;