[CORL-1035] Moderated By Bug (#2935)

* fix: improved moderated by component

* fix: uncommented line
This commit is contained in:
Wyatt Johnson
2020-04-14 21:55:40 +00:00
committed by GitHub
parent 518056f382
commit 257830a6c5
21 changed files with 142 additions and 137 deletions
@@ -524,6 +524,27 @@ exports[`renders rejected queue with comments 1`] = `
</i>
</button>
</div>
<button
className="BaseButton-root"
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onMouseOut={[Function]}
onMouseOver={[Function]}
onTouchEnd={[Function]}
type="button"
>
<div
className="ModeratedByContainer-moderatedBy"
>
Moderated By
</div>
<div
className="ModeratedByContainer-moderatedByUsername"
>
System
</div>
</button>
</div>
</div>
</div>
@@ -774,6 +795,27 @@ exports[`renders rejected queue with comments 1`] = `
</i>
</button>
</div>
<button
className="BaseButton-root"
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onMouseOut={[Function]}
onMouseOver={[Function]}
onTouchEnd={[Function]}
type="button"
>
<div
className="ModeratedByContainer-moderatedBy"
>
Moderated By
</div>
<div
className="ModeratedByContainer-moderatedByUsername"
>
System
</div>
</button>
</div>
</div>
</div>
@@ -1043,6 +1085,27 @@ exports[`renders rejected queue with comments and load more 1`] = `
</i>
</button>
</div>
<button
className="BaseButton-root"
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onMouseOut={[Function]}
onMouseOver={[Function]}
onTouchEnd={[Function]}
type="button"
>
<div
className="ModeratedByContainer-moderatedBy"
>
Moderated By
</div>
<div
className="ModeratedByContainer-moderatedByUsername"
>
System
</div>
</button>
</div>
</div>
</div>
@@ -382,7 +382,8 @@ it("approves comment in reported queue", async () => {
{
node: {
id: "mod-action",
author: {
status: GQLCOMMENT_STATUS.APPROVED,
moderator: {
id: viewer.id,
username: viewer.username,
},
@@ -479,7 +480,8 @@ it("rejects comment in reported queue", async () => {
{
node: {
id: "mod-action",
author: {
status: GQLCOMMENT_STATUS.REJECTED,
moderator: {
id: viewer.id,
username: viewer.username,
},
@@ -248,7 +248,8 @@ it("approves comment in rejected queue", async () => {
{
node: {
id: "mod-action",
author: {
status: GQLCOMMENT_STATUS.APPROVED,
moderator: {
id: viewer.id,
username: viewer.username,
},
@@ -102,7 +102,8 @@ it("approves single comment", async () => {
{
node: {
id: "mod-action",
author: {
status: GQLCOMMENT_STATUS.APPROVED,
moderator: {
id: viewer.id,
username: viewer.username,
},
@@ -155,6 +156,7 @@ it("rejects single comment", async () => {
{
node: {
id: "mod-action",
status: GQLCOMMENT_STATUS.REJECTED,
author: {
id: viewer.id,
username: viewer.username,