Skip to content

Commit

Permalink
Remove username from shared album in tests
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <[email protected]>
  • Loading branch information
artonge committed Sep 26, 2023
1 parent 7a56c55 commit c30228e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions cypress/e2e/shared_albums.cy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import { randHash } from '../utils'
import { randHash, randHash } from '../utils'
/**
* @copyright Copyright (c) 2022 Louis Chmn <[email protected]>
*
Expand Down Expand Up @@ -39,8 +39,6 @@ import {
uploadTestMedia,
} from './photosUtils'

import { randHash } from '../utils'

const alice = new User(`alice_${randHash()}`)
const bob = new User(`bob_${randHash()}`)
const charlie = new User(`charlie_${randHash()}`)
Expand Down Expand Up @@ -155,7 +153,7 @@ describe('Manage shared albums', () => {
cy.login(bob)
cy.visit('apps/photos/sharedalbums')
cy.get('ul.collections__list li')
.should('contain', `shared_album_test4 (${alice.userId})`)
.should('contain', 'shared_album_test4')

cy.login(alice)
cy.visit('/apps/photos')
Expand All @@ -165,7 +163,7 @@ describe('Manage shared albums', () => {
cy.login(bob)
cy.visit('/apps/photos/sharedalbums')
cy.get('body')
.should('not.contain', `shared_album_test4 (${alice.userId})`)
.should('not.contain', 'shared_album_test4')
})
})

Expand All @@ -186,9 +184,9 @@ describe('Manage shared albums', () => {
cy.login(bob)
cy.visit('/apps/photos/sharedalbums')
cy.get('ul.collections__list li')
.contains(`shared_album_test5 (${alice.userId})`)
.contains('shared_album_test5')
cy.get('ul.collections__list li')
.contains(`shared_album_test5 (${charlie.userId})`)
.contains('shared_album_test5')
})
})
})

0 comments on commit c30228e

Please sign in to comment.