Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/courseware/course/sequence/Sequence.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -211,6 +211,7 @@ const Sequence = ({
<>
<div className="nelp-container">
<LikeDislikeUnit courseId={courseId} unitId={unitId} />
<ReportButton courseId={courseId} unitId={unitId} />
</div>
{renderUnitNavigation(false)}
</>
Expand Down
5 changes: 5 additions & 0 deletions src/courseware/course/sequence/Sequence.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.nelp-container {
display: flex;
text-align: center;
justify-content: center;
}
4 changes: 2 additions & 2 deletions src/courseware/course/sequence/Sequence.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ describe('Sequence', () => {
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);

Expand Down Expand Up @@ -162,7 +162,7 @@ describe('Sequence', () => {
waitFor(() => {
expect(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);

Expand Down
1 change: 1 addition & 0 deletions src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -473,3 +473,4 @@
@import "course-tabs/course-tabs-navigation.scss";
@import "courseware/course/sidebar/common/SidebarBase.scss";
@import "courseware/course/sidebar/sidebars/course-outline/CourseOutlineTray.scss";
@import "courseware/course/sequence/Sequence.scss";