@@ -104,7 +104,7 @@ msTest.describe(() => {
104104 await expect ( opItems ) . toHaveCount ( 2 ) ;
105105 await expect ( opItems . nth ( 0 ) . locator ( '.element-details-title__name' ) ) . toHaveText ( 'Moving image.png' ) ;
106106 await expect ( opItems . nth ( 0 ) . locator ( '.element-details-info' ) ) . toHaveText ( 'wksp1' ) ;
107- await uploadMenu . locator ( '.menu-header-icons' ) . locator ( 'ion-icon' ) . nth ( 1 ) . click ( ) ;
107+ await uploadMenu . locator ( '.menu-header-icons' ) . locator ( 'ion-icon' ) . nth ( 0 ) . click ( ) ;
108108
109109 // File should not be here anymore
110110 if ( gridMode ) {
@@ -196,7 +196,7 @@ msTest.describe(() => {
196196 await expect ( opItems . nth ( 0 ) . locator ( '.element-details-info' ) ) . toHaveText ( '5 B • wksp1' ) ;
197197 await expect ( opItems . nth ( 1 ) . locator ( '.element-details-title__name' ) ) . toHaveText ( 'file.txt' ) ;
198198 await expect ( opItems . nth ( 1 ) . locator ( '.element-details-info' ) ) . toHaveText ( '1 B • wksp1' ) ;
199- await uploadMenu . locator ( '.menu-header-icons' ) . locator ( 'ion-icon' ) . nth ( 1 ) . click ( ) ;
199+ await uploadMenu . locator ( '.menu-header-icons' ) . locator ( 'ion-icon' ) . nth ( 0 ) . click ( ) ;
200200
201201 const entries = documents . locator ( '.folder-container' ) . locator ( '.file-list-item' ) ;
202202 await expect ( entries ) . toHaveCount ( 2 ) ;
@@ -236,8 +236,7 @@ msTest.describe(() => {
236236 } else if ( dupPolicy === 'ignore' ) {
237237 await buttons . nth ( 0 ) . click ( ) ;
238238 await expect ( dupModal ) . toBeHidden ( ) ;
239- await expect ( documents ) . toShowToast ( 'No files to move.' , 'Info' ) ;
240- await expect ( uploadMenu ) . toBeHidden ( ) ;
239+ await expect ( documents ) . toShowToast ( 'No files to move.' , 'Info' ) ; ;
241240 await expect ( entries ) . toHaveCount ( 2 ) ;
242241 await expect ( entries . locator ( '.label-name' ) ) . toHaveText ( [ 'Folder' , 'file.txt' ] ) ;
243242 await entries . nth ( 0 ) . dblclick ( ) ;
@@ -299,7 +298,7 @@ msTest.describe(() => {
299298 await expect ( opItems . nth ( 0 ) . locator ( '.element-details-info' ) ) . toHaveText ( '5 B • wksp1' ) ;
300299 await expect ( opItems . nth ( 1 ) . locator ( '.element-details-title__name' ) ) . toHaveText ( 'file.txt' ) ;
301300 await expect ( opItems . nth ( 1 ) . locator ( '.element-details-info' ) ) . toHaveText ( '1 B • wksp1' ) ;
302- await uploadMenu . locator ( '.menu-header-icons' ) . locator ( 'ion-icon' ) . nth ( 1 ) . click ( ) ;
301+ await uploadMenu . locator ( '.menu-header-icons' ) . locator ( 'ion-icon' ) . nth ( 0 ) . click ( ) ;
303302
304303 const modal = documents . locator ( '.folder-selection-modal' ) ;
305304 const dupModal = documents . locator ( '.file-operation-conflicts-modal' ) ;
@@ -342,7 +341,6 @@ msTest.describe(() => {
342341 await expect ( opItems . nth ( 0 ) . locator ( '.element-details-title__name' ) ) . toHaveText ( 'Moving Folder' ) ;
343342 } else {
344343 await expect ( documents ) . toShowToast ( 'No files to move.' , 'Info' ) ;
345- await expect ( uploadMenu ) . toBeHidden ( ) ;
346344 await expect ( entries . locator ( '.label-name' ) ) . toHaveText ( 'Folder' ) ;
347345 }
348346
0 commit comments