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.
This commit is contained in:
kamre 2021-07-01 10:57:46 +07:00 committed by GitHub
parent 6cd5003a7a
commit ba69c8b083
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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})`;