diff --git a/src/core/client/stream/test/comments/__snapshots__/editComment.spec.tsx.snap b/src/core/client/stream/test/comments/__snapshots__/editComment.spec.tsx.snap index 933909ab1..3d4a0fb0d 100644 --- a/src/core/client/stream/test/comments/__snapshots__/editComment.spec.tsx.snap +++ b/src/core/client/stream/test/comments/__snapshots__/editComment.spec.tsx.snap @@ -1,18 +1,2804 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP +exports[`cancel edit: edit canceled 1`] = ` +
+
+
+
+
+
+ Signed in as + + Markus + + . +
+
+ + Not you?  + + +
+
+
+
+
+
+ +
+
+
+ + + +
+ +
+
+
+
+
+
+ + Powered by + + ⁨The Coral Project⁩ + + +
+ +
+
+ +
+
+
+
+
+
+
+
+ + Markus + +
+ +
+
+
+ +
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+ + Lukas + +
+ +
+
+
+
+
+ + +
+
+
+
+
+
+
+
+`; + +exports[`edit a comment: edit form 1`] = ` +
+
+
+
+
+
+ Signed in as + + Markus + + . +
+
+ + Not you?  + + +
+
+
+
+
+
+ +
+
+
+ + + +
+ +
+
+
+
+
+
+ + Powered by + + ⁨The Coral Project⁩ + + +
+ +
+
+ +
+
+
+
+
+
+
+ + Markus + + +
+
+
+ +
+
+
+ + + +
+
+
+
+
+
+ + + Edit: + + remaining + +
+
+ + +
+
+ +
+
+
+
+
+
+
+ + Lukas + +
+ +
+
+
+
+
+ + +
+
+
+
+
+
+
+
+`; + +exports[`edit a comment: optimistic response 1`] = ` +
+
+
+
+
+
+ Signed in as + + Markus + + . +
+
+ + Not you?  + + +
+
+
+
+
+
+ +
+
+
+ + + +
+ +
+
+
+
+
+
+ + Powered by + + ⁨The Coral Project⁩ + + +
+ +
+
+ +
+
+
+
+
+
+
+ + Markus + + +
+
+
+ +
+
+
+ + + +
+
+
+
+
+
+ + + Edit: + + remaining + +
+
+ + +
+
+ +
+
+
+
+
+
+
+ + Lukas + +
+ +
+
+
+
+
+ + +
+
+
+
+
+
+
+
+`; + exports[`edit a comment: render stream 1`] = `
-
- Cannot return null for non-nullable field Comment.actionCounts. +
+
+
+
+
+ Signed in as + + Markus + + . +
+
+ + Not you?  + + +
+
+
+
+
+
+ +
+
+
+ + + +
+ +
+
+
+
+
+
+ + Powered by + + ⁨The Coral Project⁩ + + +
+ +
+
+ +
+
+
+
+
+
+
+
+ + Markus + +
+ +
+
+
+ +
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+ + Lukas + +
+ +
+
+
+
+
+ + +
+
+
+
+
+
+
+
+`; -GraphQL request (218:3) -217: } -218: actionCounts { - ^ -219: reaction { +exports[`edit a comment: server response 1`] = ` +
+
+
+
+
+
+ Signed in as + + Markus + + . +
+
+ + Not you?  + + +
+
+
+
+
+
+ +
+
+
+ + + +
+ +
+
+
+
+
+
+ + Powered by + + ⁨The Coral Project⁩ + + +
+ +
+
+ +
+
+
+
+
+
+
+
+ + Markus + +
+ +
+ ( + + Edited + + ) +
+
+
+
+ +
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+ + Lukas + +
+ +
+
+
+
+
+ + +
+
+
+
+
+
+
+
+`; +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/comments/__snapshots__/loadMore.spec.tsx.snap b/src/core/client/stream/test/comments/__snapshots__/loadMore.spec.tsx.snap index c2150f405..7a6a13b76 100644 --- a/src/core/client/stream/test/comments/__snapshots__/loadMore.spec.tsx.snap +++ b/src/core/client/stream/test/comments/__snapshots__/loadMore.spec.tsx.snap @@ -364,15 +364,304 @@ exports[`renders comment stream 1`] = `
-
- Cannot return null for non-nullable field Comment.actionCounts. - -GraphQL request (218:3) -217: } -218: actionCounts { - ^ -219: reaction { - +
+
+
+ + +
+
+ +
+
+
+
+
+
+
+
+ + Markus + +
+ +
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+ + Lukas + +
+ +
+
+
+
+
+ +
+
+
+
+
+ +
`; diff --git a/src/core/client/stream/test/comments/__snapshots__/permalinkView.spec.tsx.snap b/src/core/client/stream/test/comments/__snapshots__/permalinkView.spec.tsx.snap index dd7a2b2fb..7de038658 100644 --- a/src/core/client/stream/test/comments/__snapshots__/permalinkView.spec.tsx.snap +++ b/src/core/client/stream/test/comments/__snapshots__/permalinkView.spec.tsx.snap @@ -4,15 +4,91 @@ exports[`renders permalink view 1`] = `
-
- Cannot return null for non-nullable field Comment.actionCounts. - -GraphQL request (72:3) -71: } -72: actionCounts { - ^ -73: reaction { - +
+ + Show All Comments + +
+
+
+
+
+ + Markus + +
+ +
+
+
+
+
+ +
+
+
+
`; diff --git a/src/core/client/stream/test/comments/__snapshots__/postComment.spec.tsx.snap b/src/core/client/stream/test/comments/__snapshots__/postComment.spec.tsx.snap index 73b4d7de6..2d48a2e8c 100644 --- a/src/core/client/stream/test/comments/__snapshots__/postComment.spec.tsx.snap +++ b/src/core/client/stream/test/comments/__snapshots__/postComment.spec.tsx.snap @@ -1,18 +1,364 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP +exports[`post a comment: optimistic response 1`] = `null`; + +exports[`post a comment: server response 1`] = `null`; + exports[`renders comment stream 1`] = `
-
- Cannot return null for non-nullable field Comment.actionCounts. - -GraphQL request (218:3) -217: } -218: actionCounts { - ^ -219: reaction { - +
+
+
+
+
+ Signed in as + + Markus + + . +
+
+ + Not you?  + + +
+
+
+
+
+
+ +
+
+
+ + + +
+ +
+
+
+
+
+
+ + Powered by + + ⁨The Coral Project⁩ + + +
+ +
+
+ +
+
+
+
+
+
+
+
+ + Markus + +
+ +
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+ + Lukas + +
+ +
+
+
+
+
+ + +
+
+
+
+
+
`; diff --git a/src/core/client/stream/test/comments/__snapshots__/postLocalReply.spec.tsx.snap b/src/core/client/stream/test/comments/__snapshots__/postLocalReply.spec.tsx.snap index 73b4d7de6..1f134a82f 100644 --- a/src/core/client/stream/test/comments/__snapshots__/postLocalReply.spec.tsx.snap +++ b/src/core/client/stream/test/comments/__snapshots__/postLocalReply.spec.tsx.snap @@ -1,18 +1,1590 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP +exports[`post a reply: open reply form 1`] = ` +
+
+
+
+
+
+ Signed in as + + Markus + + . +
+
+ + Not you?  + + +
+
+
+
+
+
+ +
+
+
+ + + +
+ +
+
+
+
+
+
+ + Powered by + + ⁨The Coral Project⁩ + + +
+ +
+
+ +
+
+
+
+
+
+
+
+ + Markus + +
+ +
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+ + Markus + +
+ +
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+ + Markus + +
+ +
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+ + Markus + +
+ +
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+ + Markus + +
+ +
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+ + Markus + +
+ +
+
+
+
+
+ + +
+
+
+
+
+
+
+ +
+
+
+ + + +
+ +
+
+
+
+
+ + +
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+`; + +exports[`post a reply: optimistic response 1`] = `null`; + +exports[`post a reply: server response 1`] = `null`; + exports[`renders comment stream 1`] = `
-
- Cannot return null for non-nullable field Comment.actionCounts. - -GraphQL request (218:3) -217: } -218: actionCounts { - ^ -219: reaction { - +
+
+
+
+
+ Signed in as + + Markus + + . +
+
+ + Not you?  + + +
+
+
+
+
+
+ +
+
+
+ + + +
+ +
+
+
+
+
+
+ + Powered by + + ⁨The Coral Project⁩ + + +
+ +
+
+ +
+
+
+
+
+
+
+
+ + Markus + +
+ +
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+ + Markus + +
+ +
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+ + Markus + +
+ +
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+ + Markus + +
+ +
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+ + Markus + +
+ +
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+ + Markus + +
+ +
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
`; diff --git a/src/core/client/stream/test/comments/__snapshots__/postReply.spec.tsx.snap b/src/core/client/stream/test/comments/__snapshots__/postReply.spec.tsx.snap index 73b4d7de6..f0cd9ccbc 100644 --- a/src/core/client/stream/test/comments/__snapshots__/postReply.spec.tsx.snap +++ b/src/core/client/stream/test/comments/__snapshots__/postReply.spec.tsx.snap @@ -1,18 +1,850 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP +exports[`post a reply: open reply form 1`] = ` +
+
+
+
+
+
+ Signed in as + + Markus + + . +
+
+ + Not you?  + + +
+
+
+
+
+
+ +
+
+
+ + + +
+ +
+
+
+
+
+
+ + Powered by + + ⁨The Coral Project⁩ + + +
+ +
+
+ +
+
+
+
+
+
+
+
+ + Markus + +
+ +
+
+
+
+
+ + +
+
+
+
+
+
+
+ +
+
+
+ + + +
+ +
+
+
+
+
+ + +
+
+ +
+
+
+
+
+
+
+ + Lukas + +
+ +
+
+
+
+
+ + +
+
+
+
+
+
+
+
+`; + +exports[`post a reply: optimistic response 1`] = `null`; + +exports[`post a reply: server response 1`] = `null`; + exports[`renders comment stream 1`] = `
-
- Cannot return null for non-nullable field Comment.actionCounts. - -GraphQL request (218:3) -217: } -218: actionCounts { - ^ -219: reaction { - +
+
+
+
+
+ Signed in as + + Markus + + . +
+
+ + Not you?  + + +
+
+
+
+
+
+ +
+
+
+ + + +
+ +
+
+
+
+
+
+ + Powered by + + ⁨The Coral Project⁩ + + +
+ +
+
+ +
+
+
+
+
+
+
+
+ + Markus + +
+ +
+
+
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+ + Lukas + +
+ +
+
+
+
+
+ + +
+
+
+
+
+
`; diff --git a/src/core/client/stream/test/comments/__snapshots__/renderReplies.spec.tsx.snap b/src/core/client/stream/test/comments/__snapshots__/renderReplies.spec.tsx.snap index 73b4d7de6..2266711cd 100644 --- a/src/core/client/stream/test/comments/__snapshots__/renderReplies.spec.tsx.snap +++ b/src/core/client/stream/test/comments/__snapshots__/renderReplies.spec.tsx.snap @@ -4,15 +4,580 @@ exports[`renders comment stream 1`] = `
-
- Cannot return null for non-nullable field Comment.actionCounts. - -GraphQL request (218:3) -217: } -218: actionCounts { - ^ -219: reaction { - +
+
+
+ + +
+
+ +
+
+
+
+
+
+
+
+ + Markus + +
+ +
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+ + Markus + +
+ +
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+ + Markus + +
+ +
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+ + Isabelle + +
+ +
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+ + Isabelle + +
+ +
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+ + Isabelle + +
+ +
+
+
+
+
+ +
+
+
+
+
+
+
+
`; diff --git a/src/core/client/stream/test/comments/__snapshots__/renderStream.spec.tsx.snap b/src/core/client/stream/test/comments/__snapshots__/renderStream.spec.tsx.snap index 73b4d7de6..bfe500ef4 100644 --- a/src/core/client/stream/test/comments/__snapshots__/renderStream.spec.tsx.snap +++ b/src/core/client/stream/test/comments/__snapshots__/renderStream.spec.tsx.snap @@ -4,15 +4,288 @@ exports[`renders comment stream 1`] = `
-
- Cannot return null for non-nullable field Comment.actionCounts. - -GraphQL request (218:3) -217: } -218: actionCounts { - ^ -219: reaction { - +
+
+
+ + +
+
+ +
+
+
+
+
+
+
+
+ + Markus + +
+ +
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+ + Lukas + +
+ +
+
+
+
+
+ +
+
+
+
+
+
`; diff --git a/src/core/client/stream/test/comments/__snapshots__/showAllReplies.spec.tsx.snap b/src/core/client/stream/test/comments/__snapshots__/showAllReplies.spec.tsx.snap index 574177ee9..27fc4c77a 100644 --- a/src/core/client/stream/test/comments/__snapshots__/showAllReplies.spec.tsx.snap +++ b/src/core/client/stream/test/comments/__snapshots__/showAllReplies.spec.tsx.snap @@ -4,15 +4,318 @@ exports[`renders comment stream 1`] = `
-
- Cannot return null for non-nullable field Comment.actionCounts. - -GraphQL request (218:3) -217: } -218: actionCounts { - ^ -219: reaction { - +
+
+
+ + +
+
+ +
+
+
+
+
+
+
+
+ + Markus + +
+ +
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+ + Lukas + +
+ +
+
+
+
+
+ +
+
+
+
+
+
+
+ +
+
+
+
+
`; diff --git a/src/core/client/stream/test/fixtures.ts b/src/core/client/stream/test/fixtures.ts index a0e6e6a31..d77b4dde3 100644 --- a/src/core/client/stream/test/fixtures.ts +++ b/src/core/client/stream/test/fixtures.ts @@ -24,6 +24,11 @@ export const comments = [ edited: false, editableUntil: "2018-07-06T18:24:30.000Z", }, + actionCounts: { + reaction: { + total: 0, + }, + }, }, { id: "comment-1", @@ -35,6 +40,11 @@ export const comments = [ edited: false, editableUntil: "2018-07-06T18:20:30.000Z", }, + actionCounts: { + reaction: { + total: 0, + }, + }, }, { id: "comment-2", @@ -46,6 +56,11 @@ export const comments = [ edited: false, editableUntil: "2018-07-06T18:14:30.000Z", }, + actionCounts: { + reaction: { + total: 0, + }, + }, }, { id: "comment-3", @@ -57,6 +72,11 @@ export const comments = [ edited: false, editableUntil: "2018-07-06T18:14:30.000Z", }, + actionCounts: { + reaction: { + total: 0, + }, + }, }, { id: "comment-4", @@ -68,6 +88,11 @@ export const comments = [ edited: false, editableUntil: "2018-07-06T18:14:30.000Z", }, + actionCounts: { + reaction: { + total: 0, + }, + }, }, { id: "comment-5", @@ -79,6 +104,11 @@ export const comments = [ edited: false, editableUntil: "2018-07-06T18:14:30.000Z", }, + actionCounts: { + reaction: { + total: 0, + }, + }, }, ]; @@ -117,6 +147,11 @@ export const commentWithReplies = { edited: false, editableUntil: "2018-07-06T18:24:30.000Z", }, + actionCounts: { + reaction: { + total: 0, + }, + }, }; export const commentWithDeepReplies = { @@ -137,6 +172,11 @@ export const commentWithDeepReplies = { edited: false, editableUntil: "2018-07-06T18:24:30.000Z", }, + actionCounts: { + reaction: { + total: 0, + }, + }, }; export const assetWithReplies = {