@@ -102,9 +102,13 @@ describe('Nextcloud integration', function() {
102102 it ( 'Open locally' , function ( ) {
103103 cy . get ( '@loleafletframe' ) . within ( ( ) => {
104104 cy . get ( '.notebookbar-shortcuts-bar' , { timeout : 30_000 } )
105- . should ( 'be.visible' )
105+ . as ( 'shortcuts-bar' )
106+
107+ cy . get ( '@shortcuts-bar' ) . should ( 'be.visible' )
106108
107- cy . get ( 'button[aria-label="Open in local editor"]' ) . click ( )
109+ cy . get ( '@shortcuts-bar' )
110+ . find ( 'button[aria-label="Open in local editor"]' )
111+ . click ( )
108112 } )
109113
110114 cy . get ( '.confirmation-dialog' ) . should ( 'be.visible' )
@@ -126,11 +130,24 @@ describe('Nextcloud integration', function() {
126130 cy . get ( '@open' ) . its ( 'firstCall.args.0' ) . should ( 'contain' , 'nc://open/' + randUser . userId + '@' + nextcloudHost + '/document.odt' )
127131 } )
128132
129- it ( 'Insert image' , function ( ) {
133+ // TODO: Unskip once there is a viable nightly Docker container
134+ // available to the workflows
135+ it . skip ( 'Insert image' , function ( ) {
130136 cy . get ( '@loleafletframe' ) . within ( ( ) => {
131- cy . get ( '#Insert-tab-label' ) . click ( )
132- cy . get ( '#insert-insert-graphic-button' ) . click ( )
133- cy . get ( '#insert-insert-graphic-entries #insert-insert-graphic-entry-1' ) . click ( )
137+ cy . get ( '.notebookbar-tabs-container' )
138+ . get ( 'button[aria-label="Insert"]' )
139+ . filter ( '[role="tab"]' )
140+ . click ( )
141+
142+ cy . get ( '#overflow-button-insert-illustrations' )
143+ . find ( 'button[aria-label="Open Illustrations"]' )
144+ . click ( )
145+
146+ cy . get ( '#insert-insert-graphic' )
147+ . find ( 'button[aria-label="Image"]' )
148+ . click ( )
149+
150+ cy . get ( '#insert-insert-graphic-entry-1' ) . click ( )
134151 } )
135152 cy . get ( '.modal-container__content' ) . should ( 'be.visible' )
136153 } )
@@ -180,4 +197,4 @@ describe('Nextcloud integration', function() {
180197 } )
181198 } )
182199 } )
183- } )
200+ } )
0 commit comments