mirror of
https://github.com/wassname/talk.git
synced 2026-09-12 13:01:11 +08:00
[CORL-1219] Media Type Fixes (#3051)
* fix: better graphql types * fix: fixed tests * fix: fixed tests
This commit is contained in:
@@ -183,6 +183,11 @@ export const settings = createFixture<GQLSettings>({
|
||||
premodEnabled: false,
|
||||
approvedCommentsThreshold: 2,
|
||||
},
|
||||
media: {
|
||||
twitter: { enabled: false },
|
||||
giphy: { enabled: false },
|
||||
youtube: { enabled: false },
|
||||
},
|
||||
slack: {
|
||||
channels: [],
|
||||
},
|
||||
|
||||
@@ -426,6 +426,7 @@ exports[`edit a comment and handle server error: edit form 1`] = `
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div
|
||||
className="Message-root Message-colorGrey Message-fullWidth coral coral-editComment-remainingTime"
|
||||
@@ -627,6 +628,7 @@ exports[`edit a comment: edit form 1`] = `
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div
|
||||
className="Message-root Message-colorGrey Message-fullWidth coral coral-editComment-remainingTime"
|
||||
@@ -828,6 +830,7 @@ exports[`edit a comment: optimistic response 1`] = `
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div
|
||||
className="Message-root Message-colorGrey Message-fullWidth coral coral-editComment-remainingTime"
|
||||
@@ -1899,6 +1902,7 @@ exports[`shows expiry message: edit time expired 1`] = `
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div
|
||||
className="ValidationMessage-root coral-validation-message"
|
||||
|
||||
@@ -434,6 +434,7 @@ exports[`post a reply: open reply form 1`] = `
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div
|
||||
className="Box-root Flex-root Flex-flex Flex-justifyFlexEnd gutter Flex-spacing-1"
|
||||
|
||||
@@ -390,6 +390,7 @@ exports[`post a reply: open reply form 1`] = `
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div
|
||||
className="Box-root Flex-root Flex-flex Flex-justifyFlexEnd gutter Flex-spacing-1"
|
||||
|
||||
+1
@@ -439,6 +439,7 @@ exports[`renders message box when logged in 1`] = `
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div
|
||||
className="Box-root Flex-root Flex-flex Flex-justifyFlexEnd gutter Flex-spacing-1"
|
||||
|
||||
@@ -108,6 +108,11 @@ export const settings = createFixture<GQLSettings>({
|
||||
changeUsername: true,
|
||||
deleteAccount: true,
|
||||
},
|
||||
media: {
|
||||
twitter: { enabled: false },
|
||||
youtube: { enabled: false },
|
||||
giphy: { enabled: false },
|
||||
},
|
||||
multisite: false,
|
||||
featureFlags: [],
|
||||
rte: {
|
||||
@@ -307,6 +312,7 @@ export const baseComment = createFixture<GQLComment>({
|
||||
body: "Comment Body",
|
||||
revision: {
|
||||
id: "revision-0",
|
||||
media: undefined,
|
||||
},
|
||||
status: GQLCOMMENT_STATUS.NONE,
|
||||
createdAt: "2018-07-06T18:24:00.000Z",
|
||||
|
||||
Reference in New Issue
Block a user