diff --git a/__tests__/pages/exercises/[lessonSlug].test.js b/__tests__/pages/exercises/[lessonSlug].test.js
index e7a17d734..79b043521 100644
--- a/__tests__/pages/exercises/[lessonSlug].test.js
+++ b/__tests__/pages/exercises/[lessonSlug].test.js
@@ -216,6 +216,40 @@ describe('Exercises page', () => {
expect(incorrectExercisePreviews).toHaveLength(1)
})
+ test('Renders a finished all exercises message when the user finished all the exercises', async () => {
+ const mocks = [
+ {
+ request: { query: GET_EXERCISES },
+ result: {
+ data: {
+ ...getExercisesData,
+ // Make it so the user answered all of the exercises correctly
+ exerciseSubmissions: getExercisesData.exercises.map(exercise => ({
+ exerciseId: exercise.id,
+ userAnswer: exercise.answer
+ }))
+ }
+ }
+ }
+ ]
+
+ const { findByLabelText, findAllByText, findByText } = render(
+
+ 🎉 Congratulations! You finished all the exercises for this lesson! 🥳 +
+ )} > ) }