@@ -40,7 +40,7 @@ describe('Open test.md in viewer', function() {
4040
4141 cy . get ( '#fileList tr[data-file="welcome.txt"]' , { timeout : 10000 } )
4242 . should ( 'contain' , 'welcome.txt' )
43-
43+
4444 // Upload test files
4545 cy . createFolder ( 'folder' )
4646 cy . uploadFile ( 'test.md' , 'text/markdown' , 'folder/test.md' )
@@ -58,8 +58,8 @@ describe('Open test.md in viewer', function() {
5858
5959 it ( 'Shares the file as a public read only link' , function ( ) {
6060 cy . visit ( '/apps/files' , { timeout : 10000 } )
61- cy . wait ( 1000 )
62- cy . get ( '#fileList tr[data-file="test.md"] a.action-share' , { timeout : 10000 } ) . trigger ( 'click' )
61+ cy . get ( '#fileList tr[data-file="test.md"] a.action-share' , { timeout : 10000 } )
62+ . click ( { force : true } )
6363 cy . get ( '#app-sidebar-vue' )
6464 . should ( 'be.visible' )
6565 cy . get ( '#app-sidebar-vue a#sharing' ) . trigger ( 'click' )
@@ -80,7 +80,6 @@ describe('Open test.md in viewer', function() {
8080
8181 it ( 'Shares the file as a public link with write permissions' , function ( ) {
8282 cy . visit ( '/apps/files' )
83- cy . wait ( 1000 )
8483 cy . get ( '#fileList tr[data-file="test2.md"] a.action-share' , { timeout : 10000 } ) . trigger ( 'click' )
8584 cy . get ( '#app-sidebar-vue' )
8685 . should ( 'be.visible' )
@@ -96,7 +95,6 @@ describe('Open test.md in viewer', function() {
9695 cy . visit ( href )
9796 cy . window ( ) . then ( win => {
9897 win . OC . appswebroots [ 'files_texteditor' ] = true
99- cy . wait ( 1000 )
10098 cy . get ( '#editor' , { timeout : 10000 } ) . should ( 'be.visible' )
10199 cy . get ( '#editor .ProseMirror' ) . should ( 'contain' , 'Hello world' )
102100 cy . get ( '#editor .ProseMirror h2' ) . should ( 'contain' , 'Hello world' )
@@ -109,7 +107,6 @@ describe('Open test.md in viewer', function() {
109107
110108 it ( 'Opens the editor as guest' , function ( ) {
111109 cy . visit ( '/apps/files' )
112- cy . wait ( 1000 )
113110 cy . get ( '#fileList tr[data-file="test2.md"] a.action-share' , { timeout : 10000 } ) . trigger ( 'click' )
114111 cy . get ( '#app-sidebar-vue' )
115112 . should ( 'be.visible' )
@@ -134,7 +131,6 @@ describe('Open test.md in viewer', function() {
134131
135132 it ( 'Shares a folder as a public read only link' , function ( ) {
136133 cy . visit ( '/apps/files' , { timeout : 10000 } )
137- cy . wait ( 1000 )
138134 cy . get ( '#fileList tr[data-file="folder"] a.action-share' , { timeout : 10000 } ) . trigger ( 'click' )
139135 cy . get ( '#app-sidebar-vue' )
140136 . should ( 'be.visible' )
0 commit comments