From 9b037dc931214bf0eb41943578622c14c87ccf96 Mon Sep 17 00:00:00 2001 From: jajjibhai008 Date: Tue, 12 Dec 2023 15:42:48 +0500 Subject: [PATCH] fix: failing test cases --- .../course/routes/ExternalCourseEnrollmentConfirmation.jsx | 5 ++--- .../executive-education-2u/EnrollmentCompleted.test.jsx | 6 ------ 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/components/course/routes/ExternalCourseEnrollmentConfirmation.jsx b/src/components/course/routes/ExternalCourseEnrollmentConfirmation.jsx index 5eaa241945..cf6d2f5d04 100644 --- a/src/components/course/routes/ExternalCourseEnrollmentConfirmation.jsx +++ b/src/components/course/routes/ExternalCourseEnrollmentConfirmation.jsx @@ -47,16 +47,15 @@ const ExternalCourseEnrollmentConfirmation = () => { failureMessage={failureMessage} /> ) : ( - +

Congratulations, you have completed your enrollment for your online course

- { expect(screen.getByText(8)).toBeInTheDocument(); expect(screen.getByText('Start date:')).toBeInTheDocument(); }); - it('renders get smarter learner dashboard URL on enrollment.', () => { - renderWithRouter(); - expect( - screen.getByRole('link', { name: 'GetSmarter learner dashboard in a new tab' }), - ).toHaveAttribute('href', 'https://getsmarter.example.com/account?org_id=test-enterprise-slug'); - }); });