Skip to content

Commit

Permalink
get rid uf obsolete collaborator unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
fschade authored and pascalwengerter committed May 3, 2022
1 parent a9cd94e commit 571c817
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const user = Users.alice
const collaborators = [Collaborators[0], Collaborators[1]]

const selectors = {
showCollaboratorButton: 'button[data-testid="collaborators-show-people"]',
firstCollaboratorListItem: `div[data-testid="collaborator-user-item-${Collaborators[0].collaborator.name}"]`
}

Expand Down Expand Up @@ -78,19 +77,6 @@ describe('FileShares', () => {
expect(wrapper).toMatchSnapshot()
})

it('can toggle the collaborators list by clicking the avatar wrapper button', async () => {
const wrapper = getMountedWrapper({
user,
outgoingCollaborators: collaborators
})
const button = wrapper.find(selectors.showCollaboratorButton)
expect(wrapper.vm.showShareesList).toBe(true)
await button.trigger('click')
expect(wrapper.vm.showShareesList).toBe(false)
await button.trigger('click')
expect(wrapper.vm.showShareesList).toBe(true)
})

it('reacts on delete events by collaborator list items', async () => {
const spyOnCollaboratorDeleteTrigger = jest
.spyOn(FileShares.methods, '$_ocCollaborators_deleteShare_trigger')
Expand Down

0 comments on commit 571c817

Please sign in to comment.