diff --git a/packages/web-app-files/tests/unit/components/SideBar/Shares/FileShares.spec.js b/packages/web-app-files/tests/unit/components/SideBar/Shares/FileShares.spec.js index 9e9d087de95..b0f82a90f48 100644 --- a/packages/web-app-files/tests/unit/components/SideBar/Shares/FileShares.spec.js +++ b/packages/web-app-files/tests/unit/components/SideBar/Shares/FileShares.spec.js @@ -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}"]` } @@ -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')