Skip to content

Commit

Permalink
fix: failing test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
jajjibhai008 committed Dec 12, 2023
1 parent 8dd4b3a commit 9b037dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,15 @@ const ExternalCourseEnrollmentConfirmation = () => {
failureMessage={failureMessage}
/>
) : (
<Container size="lg" className="py-5">
<Container size="lg" className="py-5 d-flex flex-column">
<h2 className="mb-3">Congratulations, you have completed your enrollment for your online course</h2>
<Button
as={Hyperlink}
className="mb-3 "
className="mb-3 ml-auto"
destination={isCourseAssigned ? dashboardUrl : externalDashboardUrl}
>
{isCourseAssigned ? 'Go on edX dashboard' : 'Go on GetSmarter learner dashboard'}
</Button>

<CourseSummaryCard
courseMetadata={courseMetadata}
enrollmentCompleted
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,4 @@ describe('EnrollmentCompleted', () => {
expect(screen.getByText(8)).toBeInTheDocument();
expect(screen.getByText('Start date:')).toBeInTheDocument();
});
it('renders get smarter learner dashboard URL on enrollment.', () => {
renderWithRouter(<EnrollmentCompletedWrapper />);
expect(
screen.getByRole('link', { name: 'GetSmarter learner dashboard in a new tab' }),
).toHaveAttribute('href', 'https://getsmarter.example.com/account?org_id=test-enterprise-slug');
});
});

0 comments on commit 9b037dc

Please sign in to comment.