diff --git a/src/courseware/course/sequence/Sequence.jsx b/src/courseware/course/sequence/Sequence.jsx index 4462d89713..91294f4863 100644 --- a/src/courseware/course/sequence/Sequence.jsx +++ b/src/courseware/course/sequence/Sequence.jsx @@ -9,7 +9,7 @@ import { import { useIntl } from '@edx/frontend-platform/i18n'; import { useSelector } from 'react-redux'; import SequenceExamWrapper from '@edx/frontend-lib-special-exams'; -import { LikeDislikeUnit } from '@edunext/frontend-essentials'; +import { ReportButton, LikeDislikeUnit } from '@edunext/frontend-essentials'; import PageLoading from '@src/generic/PageLoading'; import { useModel } from '@src/generic/model-store'; @@ -151,6 +151,7 @@ const Sequence = ({ <>
+
{ await waitFor(() => expect(screen.queryByText('Loading locked content messaging...')).toBeInTheDocument()); // `Previous`, `Prerequisite` and `Close Tray` buttons. - expect(screen.getAllByRole('button').length).toEqual(5); // two more buttons like and dislike + expect(screen.getAllByRole('button').length).toEqual(6); // three more buttons like, dislike and report // `Next` button. expect(screen.getAllByRole('link').length).toEqual(1); @@ -159,7 +159,7 @@ describe('Sequence', () => { render(, { wrapWithRouter: true }); expect(await screen.findByText('Loading learning sequence...')).toBeInTheDocument(); // `Previous`, `Prerequisite` and `Close Tray` buttons. - expect(screen.getAllByRole('button')).toHaveLength(5); // two more buttons like and dislike + expect(screen.getAllByRole('button')).toHaveLength(6); // three more buttons like, dislike and report // Renders `Next` button. expect(screen.getAllByRole('link')).toHaveLength(1); diff --git a/src/index.scss b/src/index.scss index 40dc416eab..00490477df 100755 --- a/src/index.scss +++ b/src/index.scss @@ -446,4 +446,5 @@ @import "course-home/courseware-search/courseware-search.scss"; @import "course-tabs/course-tabs-navigation.scss"; @import "courseware/course/sidebar/common/SidebarBase.scss"; -@import "courseware/course/sidebar/sidebars/course-outline/CourseOutlineTray.scss"; \ No newline at end of file +@import "courseware/course/sidebar/sidebars/course-outline/CourseOutlineTray.scss"; +@import "courseware/course/sequence/Sequence.scss";