Skip to content

Commit 1bde9dc

Browse files
committed
fix: flag and tests
1 parent 5cd026c commit 1bde9dc

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/courseware/CoursewareContainer.test.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getConfig, history } from '@edx/frontend-platform';
1+
import { getConfig, mergeConfig, history } from '@edx/frontend-platform';
22
import { getAuthenticatedHttpClient } from '@edx/frontend-platform/auth';
33
import { AppProvider } from '@edx/frontend-platform/react';
44
import { waitForElementToBeRemoved, fireEvent } from '@testing-library/dom';
@@ -213,6 +213,9 @@ describe('CoursewareContainer', () => {
213213
describe('when the URL only contains a course ID', () => {
214214
const sequenceBlock = defaultSequenceBlock;
215215
const unitBlocks = defaultUnitBlocks;
216+
mergeConfig({
217+
ENABLE_SEQUENCE_NAVIGATION: true,
218+
}, 'Add configs for sequence navigation');
216219

217220
it('should use the resume block response to pick a unit if it contains one', async () => {
218221
axiosMock.onGet(`${getConfig().LMS_BASE_URL}/api/courseware/resume/${courseId}`).reply(200, {

src/courseware/course/sequence/Sequence.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ const Sequence = ({
170170
/>
171171
<CourseOutlineSidebarSlot />
172172
<div className="sequence w-100">
173-
{!getConfig().ENABLE_SEQUENCE_NAVIGATION && (
173+
{getConfig().ENABLE_SEQUENCE_NAVIGATION && (
174174
<div className="sequence-navigation-container">
175175
<SequenceNavigationSlot
176176
sequenceId={sequenceId}

0 commit comments

Comments
 (0)