diff --git a/src/containers/Dashboard/index.jsx b/src/containers/Dashboard/index.jsx
index ae6f0db..0692e4b 100644
--- a/src/containers/Dashboard/index.jsx
+++ b/src/containers/Dashboard/index.jsx
@@ -24,7 +24,7 @@ export const Dashboard = () => {
const showSelectSessionModal = reduxHooks.useShowSelectSessionModal();
// Hard coded to not show until experiment set-up logic is implemented
- const showProductRecommendations = !initIsPending && !hasAvailableDashboards && hasCourses && false;
+ const showProductRecommendations = !initIsPending && !hasAvailableDashboards && hasCourses && true;
return (
diff --git a/src/widgets/ProductRecommendations/components/ProductCardHeader.test.jsx b/src/widgets/ProductRecommendations/components/ProductCardHeader.test.jsx
index 5fc7907..a356950 100644
--- a/src/widgets/ProductRecommendations/components/ProductCardHeader.test.jsx
+++ b/src/widgets/ProductRecommendations/components/ProductCardHeader.test.jsx
@@ -1,14 +1,26 @@
import React from 'react';
import { shallow } from 'enzyme';
-import { mockCrossProductCourses } from '../testData';
import ProductCardHeader from './ProductCardHeader';
-import { courseTypeToProductTypeMap } from '../utils';
describe('ProductRecommendations ProductCardHeader', () => {
- const course = mockCrossProductCourses[0];
+ const bootCampType = 'Boot Camp';
+ const executiveEducationType = 'Executive Education';
+ const courseType = 'Courses';
it('matches snapshot', () => {
- expect(shallow(
)).toMatchSnapshot();
+ expect(shallow(
)).toMatchSnapshot();
+ });
+
+ it('renders a bootcamp header if the bootcamp course type is passed as a prop', () => {
+ const wrapper = shallow(
);
+
+ expect(wrapper.find('h3').text()).toEqual(bootCampType);
+ });
+
+ it('renders a courses header if the courses course type is passed as a prop', () => {
+ const wrapper = shallow(
);
+
+ expect(wrapper.find('h3').text()).toEqual(courseType);
});
});
diff --git a/src/widgets/ProductRecommendations/testData.js b/src/widgets/ProductRecommendations/testData.js
index 8c904e8..71e233f 100644
--- a/src/widgets/ProductRecommendations/testData.js
+++ b/src/widgets/ProductRecommendations/testData.js
@@ -1,4 +1,4 @@
-const getCoursesWithType = (courseTypes) => {
+export const getCoursesWithType = (courseTypes) => {
const courses = [];
courseTypes.forEach((type) => {