allow a test to start without sidebar

instead of starting with sidebar and then removing it

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: If2ea433cd3d5fc18ad549bd3df095de15c126ad0
pull/8956/head
Caolán McNamara 2024-04-26 09:45:39 +01:00 committed by Caolán McNamara
parent 399afd123f
commit 70a89a4d43
1 changed files with 2 additions and 1 deletions

View File

@ -352,7 +352,8 @@ function documentChecks() {
// Wait for the sidebar to open.
if (Cypress.env('INTEGRATION') !== 'nextcloud') {
doIfOnDesktop(function() {
if (Cypress.env('pdf-view') !== true)
var showSidebar = localStorage.getItem('UIDefaults_text_ShowSidebar');
if (Cypress.env('pdf-view') !== true && showSidebar !== 'false')
cy.cframe().find('#sidebar-panel').should('be.visible');
// Check that the document does not take the whole window width.