From 876f77e00056b29ca927739a4d1177f05848ca76 Mon Sep 17 00:00:00 2001 From: riggraz Date: Wed, 18 Sep 2019 17:00:58 +0200 Subject: [PATCH] Add integration test for comments (not finished) --- .../components/Comments/Comment.tsx | 2 +- .../components/Comments/NewComment.tsx | 1 + spec/factories/comments.rb | 2 +- spec/system/comments_spec.rb | 64 +++++++++++++++++++ 4 files changed, 67 insertions(+), 2 deletions(-) create mode 100644 spec/system/comments_spec.rb diff --git a/app/javascript/components/Comments/Comment.tsx b/app/javascript/components/Comments/Comment.tsx index 4f05be55..2540a9a2 100644 --- a/app/javascript/components/Comments/Comment.tsx +++ b/app/javascript/components/Comments/Comment.tsx @@ -39,7 +39,7 @@ const Comment = ({

{body}

- Reply + Reply {updatedAt}
{ diff --git a/app/javascript/components/Comments/NewComment.tsx b/app/javascript/components/Comments/NewComment.tsx index c68a4167..c0b03b1d 100644 --- a/app/javascript/components/Comments/NewComment.tsx +++ b/app/javascript/components/Comments/NewComment.tsx @@ -20,6 +20,7 @@ const NewComment = ({