diff --git a/packages/component-invite/src/tests/collectionsInvitations/post.test.js b/packages/component-invite/src/tests/collectionsInvitations/post.test.js index c2f73095391b8869e6cd0b7167af6bc10faa9e23..de48dc4f84033d9090d303bd4ce1563c1298a992 100644 --- a/packages/component-invite/src/tests/collectionsInvitations/post.test.js +++ b/packages/component-invite/src/tests/collectionsInvitations/post.test.js @@ -54,6 +54,7 @@ describe('Post collections invitations route handler', () => { it('should return success when the editor in chief invites a handlingEditor with a collection', async () => { const { user, editorInChief } = testFixtures.users const { collection } = testFixtures.collections + collection.status = 'submitted' body = { email: user.email, @@ -106,6 +107,8 @@ describe('Post collections invitations route handler', () => { it('should return success when the EiC resends an invitation to a handlingEditor with a collection', async () => { const { handlingEditor, editorInChief } = testFixtures.users const { collection } = testFixtures.collections + collection.status = 'submitted' + body = { email: handlingEditor.email, role: 'handlingEditor', @@ -128,6 +131,8 @@ describe('Post collections invitations route handler', () => { it('should return an error when the invitation is already answered', async () => { const { answerHE, editorInChief } = testFixtures.users const { collection } = testFixtures.collections + collection.status = 'submitted' + body = { email: answerHE.email, role: 'handlingEditor',