@@ -47,6 +47,9 @@ describe('Manage shared albums', () => {
4747 cy . visit ( `${ Cypress . env ( 'baseUrl' ) } /index.php/apps/photos/albums` )
4848 cy . createAnAlbumFromAlbums ( 'shared_album_test3' )
4949 cy . addCollaborators ( [ randUser2 ] )
50+ cy . visit ( `${ Cypress . env ( 'baseUrl' ) } /index.php/apps/photos/albums` )
51+ cy . createAnAlbumFromAlbums ( 'shared_album_test4' )
52+ cy . addCollaborators ( [ randUser2 ] )
5053 cy . logout ( )
5154
5255 cy . login ( randUser2 , 'password' )
@@ -120,8 +123,23 @@ describe('Manage shared albums', () => {
120123 cy . get ( '[data-test="media"]' ) . should ( 'have.length' , 0 )
121124 } )
122125
123- xit ( 'Remove collaborator from an album' , ( ) => {
126+ xit ( 'Remove shared album' , ( ) => {
124127 cy . goToSharedAlbum ( 'shared_album_test3' )
125128 cy . removeSharedAlbums ( )
126129 } )
130+
131+ xit ( 'Remove collaborator from an album' , ( ) => {
132+ cy . get ( '[data-test="media"]' ) . should ( 'have.length' , 4 )
133+
134+ cy . logout ( )
135+ cy . login ( randUser , 'password' )
136+ cy . goToAlbum ( 'shared_album_test4' )
137+ cy . removeCollaborators ( [ randUser2 ] )
138+ cy . logout ( )
139+
140+ cy . login ( randUser2 , 'password' )
141+ cy . visit ( `${ Cypress . env ( 'baseUrl' ) } /index.php/apps/photos/sharedalbums` )
142+
143+ cy . get ( 'ul.collections__list li' ) . should ( 'have.length' , 3 )
144+ } )
127145} )
0 commit comments