diff --git a/src/core/client/stream/tabs/Comments/Stream/AllCommentsTab/AllCommentsTabContainer.tsx b/src/core/client/stream/tabs/Comments/Stream/AllCommentsTab/AllCommentsTabContainer.tsx index 2177e490f..cf6475c42 100644 --- a/src/core/client/stream/tabs/Comments/Stream/AllCommentsTab/AllCommentsTabContainer.tsx +++ b/src/core/client/stream/tabs/Comments/Stream/AllCommentsTab/AllCommentsTabContainer.tsx @@ -167,7 +167,6 @@ export const AllCommentsTabContainer: FunctionComponent = props => { > )} {comments.length > 0 && - !props.story.isClosed && comments.map(comment => ( )} {comments.length > 0 && - !props.story.isClosed && comments.map(comment => ( { it("handle story closed error", async () => { await act(async () => { let returnStory = stories[0]; - const { rte, form, testRenderer } = await createTestRenderer( + const { rte, form } = await createTestRenderer( { Mutation: { createCommentReply: sinon.stub().callsFake(() => { @@ -352,8 +352,6 @@ it("handle story closed error", async () => { // Change the story that we return to be closed. returnStory = { ...stories[0], isClosed: true }; - await waitForElement(() => - within(testRenderer.root).getByText("Story is closed") - ); + await waitForElement(() => within(form).getByText("Story is closed")); }); });