2020 *
2121 */
2222
23- import { createFolder , moveFile , navigateToFolder , renameFile } from './filesUtils'
24- import { addComment , addTag , addToFavorites , createPublicShare , removeFromFavorites , showActivityTab } from './sidebarUtils'
23+ import { createFolder , navigateToFolder , moveFile , renameFile , getFileListRow } from './filesUtils'
24+ import { addComment , addTag , addToFavorites , createPublicShare , randHash , removeFromFavorites , showActivityTab } from './sidebarUtils'
2525
2626describe ( 'Check activity listing in the sidebar' , { testIsolation : true } , ( ) => {
2727 beforeEach ( function ( ) {
@@ -49,8 +49,9 @@ describe('Check activity listing in the sidebar', { testIsolation: true }, () =>
4949
5050 it ( 'Has share activity' , ( ) => {
5151 createPublicShare ( 'welcome.txt' )
52- cy . get ( 'body' ) . contains ( 'Link share created' ) . should ( 'exist' )
53- cy . get ( '.toast-close' ) . click ( { multiple : true } )
52+ cy . visit ( '/apps/files' )
53+ getFileListRow ( 'welcome.txt' ) . should ( 'be.visible' )
54+
5455 showActivityTab ( 'welcome.txt' )
5556 cy . get ( '.activity-entry' ) . first ( ) . should ( 'contains.text' , 'Shared as public link' )
5657 } )
@@ -73,7 +74,8 @@ describe('Check activity listing in the sidebar', { testIsolation: true }, () =>
7374 } )
7475
7576 it ( 'Has tag activity' , ( ) => {
76- addTag ( 'welcome.txt' , 'my_tag' )
77+ addTag ( 'welcome.txt' , `my_tag_${ randHash ( ) } ` )
78+ cy . visit ( '/apps/files' )
7779
7880 showActivityTab ( 'welcome.txt' )
7981 cy . get ( '.activity-entry' ) . first ( ) . should ( 'contains.text' , 'Added system tag' )
0 commit comments