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: If2ea433cd3d5fc18ad549bd3df095de15c126ad0pull/8956/head
parent
399afd123f
commit
70a89a4d43
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue