diff --git a/src/studio-home/tabs-section/courses-tab/courses-filters/__snapshots__/index.test.jsx.snap b/src/studio-home/tabs-section/courses-tab/courses-filters/__snapshots__/index.test.jsx.snap index 7ea2152b74..4f0847e1da 100644 --- a/src/studio-home/tabs-section/courses-tab/courses-filters/__snapshots__/index.test.jsx.snap +++ b/src/studio-home/tabs-section/courses-tab/courses-filters/__snapshots__/index.test.jsx.snap @@ -85,7 +85,7 @@ exports[`CoursesFilters snapshot 1`] = ` id="dropdown-toggle-course-type-menu" type="button" > - All courses + Active diff --git a/src/studio-home/tabs-section/courses-tab/courses-filters/courses-types-filter-menu/index.jsx b/src/studio-home/tabs-section/courses-tab/courses-filters/courses-types-filter-menu/index.jsx index 70189e8fed..f668a577b4 100644 --- a/src/studio-home/tabs-section/courses-tab/courses-filters/courses-types-filter-menu/index.jsx +++ b/src/studio-home/tabs-section/courses-tab/courses-filters/courses-types-filter-menu/index.jsx @@ -39,7 +39,7 @@ const CoursesTypesFilterMenu = ({ onItemMenuSelected }) => { id="dropdown-toggle-course-type-menu" menuItems={courseTypes} onItemMenuSelected={handleCourseTypeSelected} - defaultItemSelectedText={intl.formatMessage(messages.coursesTypesFilterMenuAllCurses)} + defaultItemSelectedText={intl.formatMessage(messages.coursesTypesFilterMenuActiveCurses)} /> ); }; diff --git a/src/studio-home/tabs-section/courses-tab/courses-filters/courses-types-filter-menu/index.test.jsx b/src/studio-home/tabs-section/courses-tab/courses-filters/courses-types-filter-menu/index.test.jsx index ddd2fd9746..4e07ea3a1f 100644 --- a/src/studio-home/tabs-section/courses-tab/courses-filters/courses-types-filter-menu/index.test.jsx +++ b/src/studio-home/tabs-section/courses-tab/courses-filters/courses-types-filter-menu/index.test.jsx @@ -60,11 +60,11 @@ describe('CoursesTypesFilterMenu', () => { const { defaultMessage: activeCoursesMenuText } = message.coursesTypesFilterMenuActiveCurses; const { defaultMessage: allCoursesMenuText } = message.coursesTypesFilterMenuAllCurses; const { defaultMessage: archiveCoursesMenuText } = message.coursesTypesFilterMenuArchivedCurses; - const activeCoursesMenuItem = screen.getByText(activeCoursesMenuText); - const allCoursesMenuItem = screen.getByTestId('item-menu-all-courses'); + const activeCoursesMenuItem = screen.getByTestId('item-menu-active-courses'); + const allCoursesMenuItem = screen.getByText(allCoursesMenuText); const archiveCoursesMenuItem = screen.getByText(archiveCoursesMenuText); - expect(activeCoursesMenuItem).toBeInTheDocument(); - expect(allCoursesMenuItem.textContent).toContain(allCoursesMenuText); + expect(activeCoursesMenuItem.textContent).toContain(activeCoursesMenuText); + expect(allCoursesMenuItem).toBeInTheDocument(); expect(archiveCoursesMenuItem).toBeInTheDocument(); });