mirror of
https://github.com/wassname/talk.git
synced 2026-09-11 12:51:33 +08:00
[CORL-1035] Moderated By Bug (#2935)
* fix: improved moderated by component * fix: uncommented line
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user