diff --git a/src/discussions/comments/comment/Reply.jsx b/src/discussions/comments/comment/Reply.jsx
index a5a589cc..20efc806 100644
--- a/src/discussions/comments/comment/Reply.jsx
+++ b/src/discussions/comments/comment/Reply.jsx
@@ -75,7 +75,10 @@ function Reply({
}}
/>
-
+
);
- return linkToProfile && author
+ return linkToProfile && author && learnersTabEnabled
? (
{
},
});
store = initializeStore();
+ axiosMock = new MockAdapter(getAuthenticatedHttpClient());
+ axiosMock.onGet(`${courseConfigApiUrl}${courseId}/`).reply(200, {
+ learners_tab_enabled: true,
+ });
+ await executeThunk(fetchCourseConfig(courseId), store.dispatch, store.getState);
});
it.each([
true,
false,
- ])('is a clickable link %s', (leanerTab) => {
+ ])('is a clickable link %s', async (leanerTab) => {
renderComponent(mockPost, leanerTab);
if (leanerTab) {