From ed5ea3b759d93417f86c22bd81992390e16cab5d Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Wed, 12 Sep 2018 15:53:07 -0300 Subject: [PATCH] new snapshots after rebuilding the schema --- .../test/__snapshots__/loadMore.spec.tsx.snap | 281 ++- .../__snapshots__/permalinkView.spec.tsx.snap | 74 +- ...permalinkViewCommentNotFound.spec.tsx.snap | 26 +- .../__snapshots__/postComment.spec.tsx.snap | 1018 ++++++++++- .../__snapshots__/postReply.spec.tsx.snap | 1579 ++++++++++++++++- .../__snapshots__/renderStream.spec.tsx.snap | 265 ++- .../showAllReplies.spec.tsx.snap | 287 ++- 7 files changed, 3481 insertions(+), 49 deletions(-) diff --git a/src/core/client/stream/test/__snapshots__/loadMore.spec.tsx.snap b/src/core/client/stream/test/__snapshots__/loadMore.spec.tsx.snap index e71e2b5cb..1d82d7bb9 100644 --- a/src/core/client/stream/test/__snapshots__/loadMore.spec.tsx.snap +++ b/src/core/client/stream/test/__snapshots__/loadMore.spec.tsx.snap @@ -325,15 +325,278 @@ exports[`renders comment stream 1`] = `
-
- Variable "$signedIn" got invalid value null; Expected non-nullable type Boolean! not to be null. - -GraphQL request (3:3) -2: $assetID: ID! -3: $signedIn: Boolean! - ^ -4: ) { - +
+
+
+ + +
+
+ +
+
+
+
+
+
+ + Markus + + +
+
+
+ +
+
+
+
+
+
+
+
+ + Lukas + + +
+
+
+ +
+
+
+
+ +
`; diff --git a/src/core/client/stream/test/__snapshots__/permalinkView.spec.tsx.snap b/src/core/client/stream/test/__snapshots__/permalinkView.spec.tsx.snap index aa3730929..19ba2686a 100644 --- a/src/core/client/stream/test/__snapshots__/permalinkView.spec.tsx.snap +++ b/src/core/client/stream/test/__snapshots__/permalinkView.spec.tsx.snap @@ -4,8 +4,78 @@ exports[`renders permalink view 1`] = `
-
- Asset not found +
+ + Show all comments + +
+
+
+ + Markus + + +
+
+
+ +
+
+
`; diff --git a/src/core/client/stream/test/__snapshots__/permalinkViewCommentNotFound.spec.tsx.snap b/src/core/client/stream/test/__snapshots__/permalinkViewCommentNotFound.spec.tsx.snap index 6f6af0a3f..931557b1a 100644 --- a/src/core/client/stream/test/__snapshots__/permalinkViewCommentNotFound.spec.tsx.snap +++ b/src/core/client/stream/test/__snapshots__/permalinkViewCommentNotFound.spec.tsx.snap @@ -4,8 +4,30 @@ exports[`renders permalink view with unknown comment 1`] = `
-
- Asset not found +
+ + Show all comments + +

+ Comment not found +

`; 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 6376cc1c3..dacf75add 100644 --- a/src/core/client/stream/test/__snapshots__/postComment.spec.tsx.snap +++ b/src/core/client/stream/test/__snapshots__/postComment.spec.tsx.snap @@ -1,18 +1,1018 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP +exports[`post a comment: optimistic response 1`] = ` +
+
+
+
+
+
+ Signed in as + + Markus + + . +
+
+ + Not you?  + + +
+
+
+
+
+
+ +
+
+
+ + + +
+
Hello world!", + } + } + disabled={true} + id="comments-postCommentForm-field" + onBlur={[Function]} + onChange={[Function]} + onCut={[Function]} + onFocus={[Function]} + onInput={[Function]} + onKeyDown={[Function]} + onPaste={[Function]} + onSelect={[Function]} + /> +
+
+
+
+
+ + Powered by + + ⁨The Coral Project⁩ + + +
+ +
+
+ +
+
+
+
+
+
+ + Markus + + +
+
Hello world!", + } + } + /> +
+ +
+
+
+
+
+
+
+
+ + Markus + + +
+
+
+ +
+
+
+
+
+
+
+
+ + Lukas + + +
+
+
+ +
+
+
+
+
+
+
+`; + +exports[`post a comment: server response 1`] = ` +
+
+
+
+
+
+ Signed in as + + Markus + + . +
+
+ + Not you?  + + +
+
+
+
+
+
+ +
+
+
+ + + +
+ +
+
+
+
+
+
+ + Powered by + + ⁨The Coral Project⁩ + + +
+ +
+
+ +
+
+
+
+
+
+ + Markus + + +
+
Hello world! (from server)", + } + } + /> +
+ +
+
+
+
+
+
+
+
+ + Markus + + +
+
+
+ +
+
+
+
+
+
+
+
+ + Lukas + + +
+
+
+ +
+
+
+
+
+
+
+`; + exports[`renders comment stream 1`] = `
-
- Variable "$signedIn" got invalid value null; Expected non-nullable type Boolean! not to be null. - -GraphQL request (3:3) -2: $assetID: ID! -3: $signedIn: Boolean! - ^ -4: ) { - +
+
+
+
+
+ Signed in as + + Markus + + . +
+
+ + Not you?  + + +
+
+
+
+
+
+ +
+
+
+ + + +
+ +
+
+
+
+
+
+ + Powered by + + ⁨The Coral Project⁩ + + +
+ +
+
+ +
+
+
+
+
+
+ + Markus + + +
+
+
+ +
+
+
+
+
+
+
+
+ + Lukas + + +
+
+
+ +
+
+
+
+
`; diff --git a/src/core/client/stream/test/__snapshots__/postReply.spec.tsx.snap b/src/core/client/stream/test/__snapshots__/postReply.spec.tsx.snap index 6376cc1c3..63360eccb 100644 --- a/src/core/client/stream/test/__snapshots__/postReply.spec.tsx.snap +++ b/src/core/client/stream/test/__snapshots__/postReply.spec.tsx.snap @@ -1,18 +1,1579 @@ // 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`] = ` +
+
+
+
+
+
+ Signed in as + + Markus + + . +
+
+ + Not you?  + + +
+
+
+
+
+
+ +
+
+
+ + + +
+ +
+
+
+
+
+
+ + Powered by + + ⁨The Coral Project⁩ + + +
+ +
+
+ +
+
+
+
+
+
+ + Markus + + +
+
+
+ +
+
+
+
+
+
+ +
+
+
+ + + +
+
Hello world!", + } + } + disabled={true} + id="comments-replyCommentForm-rte-comment-0" + onBlur={[Function]} + onChange={[Function]} + onCut={[Function]} + onFocus={[Function]} + onInput={[Function]} + onKeyDown={[Function]} + onPaste={[Function]} + onSelect={[Function]} + /> +
+
+
+
+ + +
+
+ +
+
+
+
+ + Markus + + +
+
Hello world!", + } + } + /> +
+ +
+
+
+
+
+
+
+
+
+ + Lukas + + +
+
+
+ +
+
+
+
+
+
+
+`; + +exports[`post a reply: server response 1`] = ` +
+
+
+
+
+
+ Signed in as + + Markus + + . +
+
+ + Not you?  + + +
+
+
+
+
+
+ +
+
+
+ + + +
+ +
+
+
+
+
+
+ + Powered by + + ⁨The Coral Project⁩ + + +
+ +
+
+ +
+
+
+
+
+
+ + Markus + + +
+
+
+ +
+
+
+
+
+
+
+ + Markus + + +
+
Hello world! (from server)", + } + } + /> +
+ +
+
+
+
+
+
+
+
+
+ + Lukas + + +
+
+
+ +
+
+
+
+
+
+
+`; + exports[`renders comment stream 1`] = `
-
- Variable "$signedIn" got invalid value null; Expected non-nullable type Boolean! not to be null. - -GraphQL request (3:3) -2: $assetID: ID! -3: $signedIn: Boolean! - ^ -4: ) { - +
+
+
+
+
+ Signed in as + + Markus + + . +
+
+ + Not you?  + + +
+
+
+
+
+
+ +
+
+
+ + + +
+ +
+
+
+
+
+
+ + Powered by + + ⁨The Coral Project⁩ + + +
+ +
+
+ +
+
+
+
+
+
+ + Markus + + +
+
+
+ +
+
+
+
+
+
+
+
+ + Lukas + + +
+
+
+ +
+
+
+
+
`; diff --git a/src/core/client/stream/test/__snapshots__/renderStream.spec.tsx.snap b/src/core/client/stream/test/__snapshots__/renderStream.spec.tsx.snap index 6376cc1c3..befacc4ef 100644 --- a/src/core/client/stream/test/__snapshots__/renderStream.spec.tsx.snap +++ b/src/core/client/stream/test/__snapshots__/renderStream.spec.tsx.snap @@ -4,15 +4,262 @@ exports[`renders comment stream 1`] = `
-
- Variable "$signedIn" got invalid value null; Expected non-nullable type Boolean! not to be null. - -GraphQL request (3:3) -2: $assetID: ID! -3: $signedIn: Boolean! - ^ -4: ) { - +
+
+
+ + +
+
+ +
+
+
+
+
+
+ + Markus + + +
+
+
+ +
+
+
+
+
+
+
+
+ + Lukas + + +
+
+
+ +
+
+
+
+
`; diff --git a/src/core/client/stream/test/__snapshots__/showAllReplies.spec.tsx.snap b/src/core/client/stream/test/__snapshots__/showAllReplies.spec.tsx.snap index 29fc3ded2..d8a24d800 100644 --- a/src/core/client/stream/test/__snapshots__/showAllReplies.spec.tsx.snap +++ b/src/core/client/stream/test/__snapshots__/showAllReplies.spec.tsx.snap @@ -4,15 +4,284 @@ exports[`renders comment stream 1`] = `
-
- Variable "$signedIn" got invalid value null; Expected non-nullable type Boolean! not to be null. - -GraphQL request (3:3) -2: $assetID: ID! -3: $signedIn: Boolean! - ^ -4: ) { - +
+
+
+ + +
+
+ +
+
+
+
+
+
+ + Markus + + +
+
+
+ +
+
+
+
+
+
+
+ + Lukas + + +
+
+
+ +
+
+
+
+ +
+
+
+
`;