@@ -32,7 +32,7 @@ describe('Nextcloud integration', function() {
3232
3333 it ( 'Sharing sidebar' , function ( ) {
3434 cy . get ( '@loleafletframe' ) . within ( ( ) => {
35- cy . get ( '.notebookbar-tabs-container' , { timeout : 50_000 } )
35+ cy . get ( '.notebookbar-tabs-container' , { timeout : 30_000 } )
3636 . should ( 'be.visible' )
3737
3838 cy . get ( 'button[aria-label="File"]' ) . click ( )
@@ -50,7 +50,7 @@ describe('Nextcloud integration', function() {
5050
5151 it ( 'Versions sidebar' , function ( ) {
5252 cy . get ( '@loleafletframe' ) . within ( ( ) => {
53- cy . get ( '.notebookbar-tabs-container' , { timeout : 50_000 } )
53+ cy . get ( '.notebookbar-tabs-container' , { timeout : 30_000 } )
5454 . should ( 'be.visible' )
5555
5656 cy . get ( 'button[aria-label="File"]' ) . click ( )
@@ -69,47 +69,39 @@ describe('Nextcloud integration', function() {
6969 } )
7070
7171 it ( 'Save as' , function ( ) {
72- if ( Cypress . env ( 'codeRelease' ) === 'nightly' ) {
73- const exportFilename = 'document.rtf'
74- cy . get ( '@loleafletframe' ) . within ( ( ) => {
75- cy . get ( '.notebookbar-tabs-container' , { timeout : 50_000 } )
76- . should ( 'be.visible' )
72+ const exportFilename = 'document.rtf'
73+ cy . get ( '@loleafletframe' ) . within ( ( ) => {
74+ cy . get ( '.notebookbar-tabs-container' , { timeout : 30_000 } )
75+ . should ( 'be.visible' )
7776
78- cy . get ( 'button[aria-label="File"]' ) . click ( )
79- cy . get ( 'button[aria-label="Save As"]' ) . click ( )
77+ cy . get ( 'button[aria-label="File"]' ) . click ( )
78+ cy . get ( 'button[aria-label="Save As"]' ) . click ( )
79+
80+ cy . get ( '#saveas-entries #saveas-entry-1' ) . click ( )
81+ } )
8082
81- // FIXME: This should start failing once an upstream Collabora
82- // bug is fixed which causes the Save As menu to not appear
83- cy . get ( '#saveas-entries #saveas-entry-1' ) . should ( 'not.exist' )
84- } )
8583
86- // FIXME: Until the above problem is fixed, we skip the rest of this test
87- /*
88- cy.get('.saveas-dialog').should('be.visible')
89- cy.get('.saveas-dialog input[type=text]')
90- .should('be.visible')
91- .should('have.value', `/${exportFilename}`)
84+ cy . get ( '.saveas-dialog' ) . should ( 'be.visible' )
85+ cy . get ( '.saveas-dialog input[type=text]' )
86+ . should ( 'be.visible' )
87+ . should ( 'have.value' , `/${ exportFilename } ` )
9288
93- cy.get('.saveas-dialog button.button-vue--vue-primary').click()
89+ cy . get ( '.saveas-dialog button.button-vue--vue-primary' ) . click ( )
9490
95- cy.get('@loleafletframe').within(() => {
96- cy.get('#closebutton').click()
97- cy.waitForViewerClose()
98- })
91+ cy . get ( '@loleafletframe' ) . within ( ( ) => {
92+ cy . get ( '#closebutton' ) . click ( )
93+ cy . waitForViewerClose ( )
94+ } )
9995
100- // FIXME: We should not need to reload
101- cy.get('.breadcrumb__crumbs a').eq(0).click({ force: true })
96+ // FIXME: We should not need to reload
97+ cy . get ( '.breadcrumb__crumbs a' ) . eq ( 0 ) . click ( { force : true } )
10298
103- cy.openFile(exportFilename)
104- */
105- } else {
106- this . skip ( )
107- }
99+ cy . openFile ( exportFilename )
108100 } )
109101
110102 it ( 'Open locally' , function ( ) {
111103 cy . get ( '@loleafletframe' ) . within ( ( ) => {
112- cy . get ( '.notebookbar-shortcuts-bar' , { timeout : 50_000 } )
104+ cy . get ( '.notebookbar-shortcuts-bar' , { timeout : 30_000 } )
113105 . should ( 'be.visible' )
114106
115107 cy . get ( 'button[aria-label="Open in local editor"]' ) . click ( )
0 commit comments