diff --git a/src/discussions/posts/post/PostLink.jsx b/src/discussions/posts/post/PostLink.jsx
index 327a401a..d4e2f745 100644
--- a/src/discussions/posts/post/PostLink.jsx
+++ b/src/discussions/posts/post/PostLink.jsx
@@ -5,7 +5,7 @@ import { Link } from 'react-router-dom';
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';
import { Badge, Icon } from '@edx/paragon';
-import { Flag, Pin } from '@edx/paragon/icons';
+import { Pin } from '@edx/paragon/icons';
import { Routes, ThreadType } from '../../../data/constants';
import AuthorLabel from '../../common/AuthorLabel';
@@ -42,12 +42,6 @@ function PostLink({
a test post
', + hasEndorsed: false, + voted: false, + voteCount: 10, + previewBody: 'a test post
', + read: false, + title: 'test post', + topicId: 'i4x-edx-eiorguegnru-course-foobarbaz', + unreadCommentCount: 2, + groupName: null, + groupId: null, + createdAt: '2022-02-25T09:17:17Z', + closed: false, +}; + +describe('PostFooter', () => { + beforeEach(async () => { + initializeMockApp({ + authenticatedUser: { + userId: 3, + username: 'abc123', + administrator: true, + roles: [], + }, + }); + store = initializeStore(); + }); + + it('has reported text only when abuseFlagged is true', () => { + renderComponent(mockPost); + expect(screen.queryByTestId('reported-post')).toBeFalsy(); + + renderComponent({ ...mockPost, abuseFlagged: true }); + expect(screen.getByTestId('reported-post')).toBeTruthy(); + }); +}); diff --git a/src/discussions/posts/post/messages.js b/src/discussions/posts/post/messages.js index dc3b4d8a..d677dfa7 100644 --- a/src/discussions/posts/post/messages.js +++ b/src/discussions/posts/post/messages.js @@ -16,7 +16,8 @@ const messages = defineMessages({ }, contentReported: { id: 'discussions.post.contentReported', - defaultMessage: 'Content reported for staff review', + defaultMessage: 'Reported', + description: 'Content reported for staff review', }, following: { id: 'discussions.post.following',