diff --git a/tests/unit/containers/my-quizzes/CreateOrEditQuizContainer.spec.jsx b/tests/unit/containers/my-quizzes/CreateOrEditQuizContainer.spec.jsx index 136426e2c9..033a0a0fa9 100644 --- a/tests/unit/containers/my-quizzes/CreateOrEditQuizContainer.spec.jsx +++ b/tests/unit/containers/my-quizzes/CreateOrEditQuizContainer.spec.jsx @@ -32,4 +32,13 @@ describe('CreateOrEditQuizContainer', () => { expect(titleInput.value).toBe('quiz title') expect(descriptionInput.value).toBe('quiz description') }) + + it('should click on save button', () => { + const saveBtn = screen.getByText('common.save') + + fireEvent.click(saveBtn) + + expect(setTitle).toHaveBeenCalled() + expect(setDescription).toHaveBeenCalled() + }) })