diff --git a/src/course-home/progress-tab/ProgressTab.test.jsx b/src/course-home/progress-tab/ProgressTab.test.jsx index be99cab11d..72627e6d42 100644 --- a/src/course-home/progress-tab/ProgressTab.test.jsx +++ b/src/course-home/progress-tab/ProgressTab.test.jsx @@ -5,6 +5,7 @@ import { sendTrackEvent } from '@edx/frontend-platform/analytics'; import { getAuthenticatedHttpClient } from '@edx/frontend-platform/auth'; import { breakpoints } from '@openedx/paragon'; import MockAdapter from 'axios-mock-adapter'; +import { within } from '@testing-library/react'; import { fireEvent, initializeMockApp, logUnhandledRequests, render, screen, act, @@ -1243,6 +1244,11 @@ describe('Progress Tab', () => { linkType: 'button', pageName: 'progress', }); + + const certificateStatusComponent = screen.queryByTestId('certificate-status-component'); + expect(certificateStatusComponent).toBeInTheDocument(); + const headerElement = within(certificateStatusComponent).getByRole('heading', { level: 2 }); + expect(headerElement).toBeInTheDocument(); }); it('Displays nothing if audit only', async () => { diff --git a/src/course-home/progress-tab/certificate-status/CertificateStatus.jsx b/src/course-home/progress-tab/certificate-status/CertificateStatus.jsx index bc1cd92039..149dda8480 100644 --- a/src/course-home/progress-tab/certificate-status/CertificateStatus.jsx +++ b/src/course-home/progress-tab/certificate-status/CertificateStatus.jsx @@ -244,7 +244,7 @@ const CertificateStatus = () => {
- + {header}} /> {body}