Skip to content

Commit 1a706f5

Browse files
committed
fix: product-tours tests
1 parent fa9644e commit 1a706f5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/course-home/data/__snapshots__/redux.test.js.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ exports[`Data layer integration tests Test fetchDatesTab Should fetch, normalize
1818
"courseOutlineShouldUpdate": false,
1919
"courseOutlineStatus": "loading",
2020
"courseStatus": "loading",
21+
"coursewareOutlineSidebarSettings": {},
2122
"sequenceId": null,
2223
"sequenceMightBeUnit": false,
2324
"sequenceStatus": "loading",
@@ -409,6 +410,7 @@ exports[`Data layer integration tests Test fetchOutlineTab Should fetch, normali
409410
"courseOutlineShouldUpdate": false,
410411
"courseOutlineStatus": "loading",
411412
"courseStatus": "loading",
413+
"coursewareOutlineSidebarSettings": {},
412414
"sequenceId": null,
413415
"sequenceMightBeUnit": false,
414416
"sequenceStatus": "loading",
@@ -680,6 +682,7 @@ exports[`Data layer integration tests Test fetchProgressTab Should fetch, normal
680682
"courseOutlineShouldUpdate": false,
681683
"courseOutlineStatus": "loading",
682684
"courseStatus": "loading",
685+
"coursewareOutlineSidebarSettings": {},
683686
"sequenceId": null,
684687
"sequenceMightBeUnit": false,
685688
"sequenceStatus": "loading",

src/product-tours/ProductTours.test.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import React from 'react';
66
import { Route, Routes } from 'react-router-dom';
77
import { Factory } from 'rosie';
8-
import { getConfig, history } from '@edx/frontend-platform';
8+
import { getConfig, history, mergeConfig } from '@edx/frontend-platform';
99
import { getAuthenticatedHttpClient } from '@edx/frontend-platform/auth';
1010
import { AppProvider } from '@edx/frontend-platform/react';
1111
import MockAdapter from 'axios-mock-adapter';
@@ -287,6 +287,9 @@ describe('Courseware Tour', () => {
287287
it.each([true, false])(
288288
'should load courseware checkpoint correctly if tour enabled is $showCoursewareTour',
289289
async (showCoursewareTour) => {
290+
mergeConfig({
291+
ENABLE_SEQUENCE_NAVIGATION: true,
292+
}, 'Add configs for sequence navigation');
290293
axiosMock.onGet(tourDataUrl).reply(200, {
291294
course_home_tour_status: 'no-tour',
292295
show_courseware_tour: showCoursewareTour,

0 commit comments

Comments
 (0)