diff --git a/frontend/src/pages/Community.spec.js b/frontend/src/pages/Community.spec.js index 917fa0222..7a778293b 100644 --- a/frontend/src/pages/Community.spec.js +++ b/frontend/src/pages/Community.spec.js @@ -304,9 +304,7 @@ describe('Community', () => { deleteContribution: true, }, }) - await wrapper - .findComponent({ name: 'ContributionForm' }) - .vm.$emit('delete-contribution', 2) + contributionListComponent.vm.$emit('delete-contribution', { id: 2 }) }) it('calls the API', () => {