@@ -181,7 +181,9 @@ Cypress.Commands.add('shareLink', (user, path, shareData = {}) => {
181181} )
182182
183183Cypress . Commands . add ( 'openFile' , fileName => {
184- cy . get ( `[data-cy-files-list] tr[data-cy-files-list-row-name="${ fileName } "] [data-cy-files-list-row-name-link]` ) . click ( )
184+ cy . get ( `[data-cy-files-list] tr[data-cy-files-list-row-name="${ fileName } "] [data-cy-files-list-row-name-link]` , { timeout : 10000 } )
185+ . should ( 'be.visible' )
186+ . click ( )
185187} )
186188
187189Cypress . Commands . add ( 'nextcloudEnableApp' , ( appId ) => {
@@ -238,7 +240,7 @@ Cypress.Commands.add('nextcloudTestingAppConfigSet', (appId, configKey, configVa
238240} )
239241
240242Cypress . Commands . add ( 'waitForViewer' , ( ) => {
241- cy . get ( '#viewer' , { timeout : 50000 } )
243+ cy . get ( '#viewer' , { timeout : 60000 } )
242244 . should ( 'be.visible' )
243245 . and ( 'have.class' , 'modal-mask' )
244246 . and ( 'not.have.class' , 'icon-loading' )
@@ -252,16 +254,16 @@ Cypress.Commands.add('waitForViewerClose', () => {
252254Cypress . Commands . add ( 'waitForCollabora' , ( wrapped = false , federated = false ) => {
253255 const wrappedFrameIdentifier = federated ? 'coolframe' : 'documentframe'
254256 if ( wrapped ) {
255- cy . get ( `[data-cy="${ wrappedFrameIdentifier } "]` , { timeout : 30000 } )
257+ cy . get ( `[data-cy="${ wrappedFrameIdentifier } "]` , { timeout : 60000 } )
256258 . its ( '0.contentDocument' )
257259 . its ( 'body' ) . should ( 'not.be.empty' )
258260 . should ( 'be.visible' ) . should ( 'not.be.empty' )
259261 . as ( 'collaboraframe' )
260262 }
261263
262264 const coolFrame = wrapped
263- ? cy . get ( '@collaboraframe' ) . find ( '[data-cy="coolframe"]' , { timeout : 30000 } )
264- : cy . get ( '[data-cy="coolframe"]' )
265+ ? cy . get ( '@collaboraframe' ) . find ( '[data-cy="coolframe"]' , { timeout : 60000 } )
266+ : cy . get ( '[data-cy="coolframe"]' , { timeout : 60000 } )
265267
266268 coolFrame
267269 . its ( '0.contentDocument' )
@@ -270,7 +272,7 @@ Cypress.Commands.add('waitForCollabora', (wrapped = false, federated = false) =>
270272
271273 cy . get ( '@loleafletframe' )
272274 . within ( ( ) => {
273- cy . get ( '#main-document-content' ) . should ( 'be.visible' )
275+ cy . get ( '#main-document-content' , { timeout : 30000 } ) . should ( 'be.visible' )
274276 } )
275277
276278 return cy . get ( '@loleafletframe' )
@@ -323,10 +325,10 @@ Cypress.Commands.add('inputCollaboraGuestName', (guestName = 'cloud') => {
323325
324326Cypress . Commands . add ( 'closeDocument' , ( ) => {
325327 cy . get ( '@loleafletframe' ) . within ( ( ) => {
326- cy . get ( '#closebutton' ) . click ( )
328+ cy . get ( '#closebutton' , { timeout : 10000 } ) . should ( 'be.visible' ) . click ( )
327329 } )
328330
329- cy . get ( '#viewer' , { timeout : 5000 } ) . should ( 'not.exist' )
331+ cy . get ( '#viewer' , { timeout : 10000 } ) . should ( 'not.exist' )
330332} )
331333
332334Cypress . Commands . add ( 'verifyOpen' , ( filename ) => {
@@ -476,17 +478,17 @@ Cypress.Commands.add('makeTalkRoomPublic', (user, token, password = '') => {
476478} )
477479
478480Cypress . Commands . add ( 'newFileFromMenu' , ( fileType = 'document' , fileName = 'MyNewFile' ) => {
479- cy . get ( 'form[data-cy-upload-picker=""]' )
481+ cy . get ( 'form[data-cy-upload-picker=""]' , { timeout : 10000 } )
480482 . first ( )
481483 . should ( 'be.visible' )
482484 . click ( )
483485
484- cy . get ( 'button[role="menuitem"]' )
486+ cy . get ( 'button[role="menuitem"]' , { timeout : 10000 } )
485487 . contains ( 'New ' + fileType )
486488 . should ( 'be.visible' )
487489 . click ( )
488490
489- cy . get ( 'input[data-cy-files-new-node-dialog-input=""]' )
491+ cy . get ( 'input[data-cy-files-new-node-dialog-input=""]' , { timeout : 10000 } )
490492 . should ( 'be.visible' )
491493 . type ( fileName + '{enter}' )
492494} )
0 commit comments