From 8a25e6826641009aaf9585c573cfaf9d887fdbf0 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Tue, 11 Sep 2018 21:16:22 +0200 Subject: [PATCH] Add integration tests --- .../stream/components/EditCommentForm.tsx | 2 + .../__snapshots__/editComment.spec.tsx.snap | 1028 +++++++++++++++++ .../__snapshots__/postComment.spec.tsx.snap | 1 + .../__snapshots__/postReply.spec.tsx.snap | 1 + .../client/stream/test/editComment.spec.tsx | 56 +- 5 files changed, 1082 insertions(+), 6 deletions(-) diff --git a/src/core/client/stream/components/EditCommentForm.tsx b/src/core/client/stream/components/EditCommentForm.tsx index 84c753b1b..454ffb41b 100644 --- a/src/core/client/stream/components/EditCommentForm.tsx +++ b/src/core/client/stream/components/EditCommentForm.tsx @@ -115,6 +115,7 @@ const EditCommentForm: StatelessComponent = props => { {props.expired ? ( + + + +
+
+
+ +
+
+
+ + + +
+ +
+
+
+
+
+
+ + Powered by + + ⁨The Coral Project⁩ + + +
+ +
+
+ +
+
+
+
+
+
+ + Markus + + +
+
+ +
+
+
+
+ +
+
+
+
+
+
+
+ + Lukas + + +
+
+
+
+ +
+
+
+
+
+
+`; + exports[`edit a comment: edit form 1`] = `
`; + +exports[`shows expiry message: edit form closed 1`] = ` +
+
+
+
+
+
+ Signed in as + + Markus + + . +
+
+ + Not you?  + + +
+
+
+
+
+
+ +
+
+
+ + + +
+ +
+
+
+
+
+
+ + Powered by + + ⁨The Coral Project⁩ + + +
+ +
+
+ +
+
+
+
+
+
+ + Markus + + +
+
+ +
+
+
+
+ +
+
+
+
+
+
+
+ + Lukas + + +
+
+
+
+ +
+
+
+
+
+
+`; + +exports[`shows expiry message: edit time expired 1`] = ` +
+
+
+
+
+
+ Signed in as + + Markus + + . +
+
+ + Not you?  + + +
+
+
+
+
+
+ +
+
+
+ + + +
+ +
+
+
+
+
+
+ + Powered by + + ⁨The Coral Project⁩ + + +
+ +
+
+ +
+
+
+
+
+
+
+ + Markus + + +
+
+
+ +
+
+
+ + + +
+
+
+
+
+
+ + Edit time has expired. You can no longer edit this comment. Why not post another one? +
+
+ +
+
+ +
+
+
+
+
+ + Lukas + + +
+
+
+
+ +
+
+
+
+
+
+`; diff --git a/src/core/client/stream/test/__snapshots__/postComment.spec.tsx.snap b/src/core/client/stream/test/__snapshots__/postComment.spec.tsx.snap index 15fe54400..0c0129082 100644 --- a/src/core/client/stream/test/__snapshots__/postComment.spec.tsx.snap +++ b/src/core/client/stream/test/__snapshots__/postComment.spec.tsx.snap @@ -207,6 +207,7 @@ exports[`post a comment: optimistic response 1`] = `