diff --git a/src/course-home/progress-tab/ProgressTab.test.jsx b/src/course-home/progress-tab/ProgressTab.test.jsx index 1a9b15408d..d3539dac72 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, @@ -1250,6 +1251,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 a4ac7da7b2..6d58e0781b 100644 --- a/src/course-home/progress-tab/certificate-status/CertificateStatus.jsx +++ b/src/course-home/progress-tab/certificate-status/CertificateStatus.jsx @@ -243,7 +243,7 @@ const CertificateStatus = () => {
- + {header}} /> {body}