diff --git a/cypress/integration/sidebar.spec.js b/cypress/integration/sidebar.spec.js --- a/cypress/integration/sidebar.spec.js +++ b/cypress/integration/sidebar.spec.js @@ -36,16 +36,16 @@ let collapseWidth; cy.get('.swh-push-menu') .click() - .get('.swh-sidebar') - .wait(250) + .wait(500) + .get('.sidebar-collapse .swh-sidebar') .invoke('width') .then((width) => { collapseWidth = width; }) .get('.swh-push-menu') .click() - .get('.swh-sidebar') - .wait(250) + .wait(500) + .get(':not(.sidebar-collapse) .swh-sidebar') .invoke('width') .then(openWidth => { assert.isBelow(collapseWidth, openWidth);