From 68361f62bbb23103e7ad397681b6f0fd7df23dad Mon Sep 17 00:00:00 2001 From: Navin Karkera Date: Tue, 12 Nov 2024 15:47:46 +0530 Subject: [PATCH] test: fix failing tests --- src/course-unit/CourseUnit.test.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/course-unit/CourseUnit.test.jsx b/src/course-unit/CourseUnit.test.jsx index 5f569ef3d1..26e8befef3 100644 --- a/src/course-unit/CourseUnit.test.jsx +++ b/src/course-unit/CourseUnit.test.jsx @@ -282,7 +282,7 @@ describe('', () => { await waitFor(() => { const problemButton = getByRole('button', { - name: new RegExp(`${addComponentMessages.buttonText.defaultMessage} Problem`, 'i'), + name: new RegExp(`problem ${addComponentMessages.buttonText.defaultMessage} Problem`, 'i'), }); userEvent.click(problemButton);