From 16cbbe8d2c8869c0b807f6d2141c78986a97305c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bel=C3=A9n=20Curcio?= Date: Wed, 26 Sep 2018 17:23:54 -0300 Subject: [PATCH] Adding spected --- .../__snapshots__/postComment.spec.tsx.snap | 97 ++++++++++- .../postLocalReply.spec.tsx.snap | 158 ++++++----------- .../__snapshots__/postReply.spec.tsx.snap | 162 +++++++----------- .../stream/test/comments/postComment.spec.tsx | 5 + .../test/comments/postLocalReply.spec.tsx | 5 + .../stream/test/comments/postReply.spec.tsx | 5 + 6 files changed, 231 insertions(+), 201 deletions(-) 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 11d3fb467..fa033c7d5 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 @@ -569,13 +569,19 @@ exports[`post a comment: server response 1`] = ` +
Hello world!", + "__html": "", } } disabled={false} @@ -610,8 +616,8 @@ exports[`post a comment: server response 1`] = `
+ + + + + +
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 7749e33f2..618f6b7ea 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 @@ -2476,7 +2476,7 @@ exports[`post a reply: server response 1`] = ` className="Flex-root Comment-footer Flex-flex Flex-halfItemGutter Flex-directionRow" >
-
-
-
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 4803b779e..8dd6ae3f6 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 @@ -1307,7 +1307,7 @@ exports[`post a reply: server response 1`] = ` className="Flex-root Comment-footer Flex-flex Flex-halfItemGutter Flex-directionRow" > - -
Hello world!", - } - } - disabled={false} - id="comments-replyCommentForm-rte-comment-0" - onBlur={[Function]} - onChange={[Function]} - onCut={[Function]} - onFocus={[Function]} - onInput={[Function]} - onKeyDown={[Function]} - onPaste={[Function]} - onSelect={[Function]} - />
-
- - -
- +
{ editableUntil: "2018-07-06T18:24:30.000Z", }, replies: { edges: [], pageInfo: {} }, + actionCounts: { + reaction: { + total: 0, + }, + }, }, }, clientMutationId: "0", diff --git a/src/core/client/stream/test/comments/postLocalReply.spec.tsx b/src/core/client/stream/test/comments/postLocalReply.spec.tsx index f0e5c8949..c063118ae 100644 --- a/src/core/client/stream/test/comments/postLocalReply.spec.tsx +++ b/src/core/client/stream/test/comments/postLocalReply.spec.tsx @@ -46,6 +46,11 @@ beforeEach(() => { edited: false, editableUntil: "2018-07-06T18:24:30.000Z", }, + actionCounts: { + reaction: { + total: 0, + }, + }, }, }, clientMutationId: "0", diff --git a/src/core/client/stream/test/comments/postReply.spec.tsx b/src/core/client/stream/test/comments/postReply.spec.tsx index 6f75b57a8..19c105fc5 100644 --- a/src/core/client/stream/test/comments/postReply.spec.tsx +++ b/src/core/client/stream/test/comments/postReply.spec.tsx @@ -43,6 +43,11 @@ beforeEach(() => { edited: false, editableUntil: "2018-07-06T18:24:30.000Z", }, + actionCounts: { + reaction: { + total: 0, + }, + }, }, }, clientMutationId: "0",