Skip to content
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/course-home/progress-tab/ProgressTab.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ const CertificateStatus = () => {
<Card className="bg-light-200 raised-card">
<ProgressCertificateStatusSlot courseId={courseId}>
<div id={`${certCase}_certificate_status`}>
<Card.Header title={header} />
<Card.Header title={<h2>{header}</h2>} />
<Card.Section className="small text-gray-700">
{body}
</Card.Section>
Expand Down
4 changes: 4 additions & 0 deletions src/courseware/course/Course.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ describe('Course', () => {
global.innerWidth = breakpoints.extraLarge.minWidth;
});

beforeEach(() => {
sessionStorage.clear();
});

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just clarifying. Do we really need this here?

// This was passing when it shouldn't have been because of improper
// waitFor use. With the React 18 upgrade it no longer improperly passes
// so we are skipping it. See https://github.com/openedx/frontend-app-learning/issues/1669
Expand Down
Empty file added webpack.dev-tutor.config.js
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it will be remove

Empty file.