feat: updated frontend-build & frontend-platform major versions (#475)
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
exports[`Editor Page snapshots props besides blockType default to null 1`] = `
|
||||
<Provider
|
||||
store={
|
||||
Object {
|
||||
{
|
||||
"dispatch": [Function],
|
||||
"getState": [Function],
|
||||
"replaceReducer": [Function],
|
||||
@@ -32,7 +32,7 @@ exports[`Editor Page snapshots props besides blockType default to null 1`] = `
|
||||
exports[`Editor Page snapshots rendering correctly with expected Input 1`] = `
|
||||
<Provider
|
||||
store={
|
||||
Object {
|
||||
{
|
||||
"dispatch": [Function],
|
||||
"getState": [Function],
|
||||
"replaceReducer": [Function],
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
exports[`Video Selector Page snapshots rendering correctly with expected Input 1`] = `
|
||||
<Provider
|
||||
store={
|
||||
Object {
|
||||
{
|
||||
"dispatch": [Function],
|
||||
"getState": [Function],
|
||||
"replaceReducer": [Function],
|
||||
@@ -29,7 +29,7 @@ exports[`Video Selector Page snapshots rendering correctly with expected Input 1
|
||||
exports[`Video Selector Page snapshots rendering with props to null 1`] = `
|
||||
<Provider
|
||||
store={
|
||||
Object {
|
||||
{
|
||||
"dispatch": [Function],
|
||||
"getState": [Function],
|
||||
"replaceReducer": [Function],
|
||||
|
||||
@@ -4,7 +4,7 @@ exports[`EditorContainer component render snapshot: initialized. enable save and
|
||||
<div
|
||||
className="editor-container d-flex flex-column position-relative zindex-0"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"minHeight": "100%",
|
||||
}
|
||||
}
|
||||
@@ -68,8 +68,8 @@ exports[`EditorContainer component render snapshot: initialized. enable save and
|
||||
disableSave={false}
|
||||
onCancel={[MockFunction openCancelConfirmModal]}
|
||||
onSave={
|
||||
Object {
|
||||
"handleSaveClicked": Object {
|
||||
{
|
||||
"handleSaveClicked": {
|
||||
"dispatch": [MockFunction react-redux.dispatch],
|
||||
"getContent": [MockFunction props.getContent],
|
||||
"returnFunction": [MockFunction props.returnFunction],
|
||||
@@ -85,7 +85,7 @@ exports[`EditorContainer component render snapshot: not initialized. disable sav
|
||||
<div
|
||||
className="editor-container d-flex flex-column position-relative zindex-0"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"minHeight": "100%",
|
||||
}
|
||||
}
|
||||
@@ -145,8 +145,8 @@ exports[`EditorContainer component render snapshot: not initialized. disable sav
|
||||
disableSave={true}
|
||||
onCancel={[MockFunction openCancelConfirmModal]}
|
||||
onSave={
|
||||
Object {
|
||||
"handleSaveClicked": Object {
|
||||
{
|
||||
"handleSaveClicked": {
|
||||
"dispatch": [MockFunction react-redux.dispatch],
|
||||
"getContent": [MockFunction props.getContent],
|
||||
"returnFunction": [MockFunction props.returnFunction],
|
||||
|
||||
@@ -10,7 +10,7 @@ exports[`EditableHeader snapshot snapshot 1`] = `
|
||||
onKeyDown={[MockFunction args.handleKeyDown]}
|
||||
placeholder="Title"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"paddingInlineEnd": "calc(1rem + 84px)",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ exports[`TitleHeader snapshots initialized 1`] = `
|
||||
className="d-flex flex-row align-items-center mt-1"
|
||||
>
|
||||
<Truncate>
|
||||
Object {
|
||||
{
|
||||
"useSelector": [Function],
|
||||
}
|
||||
</Truncate>
|
||||
|
||||
@@ -11,7 +11,7 @@ exports[`AnswerOption render snapshot: renders correct option with feedback 1`]
|
||||
>
|
||||
<Checker
|
||||
answer={
|
||||
Object {
|
||||
{
|
||||
"correct": true,
|
||||
"id": "A",
|
||||
"selectedFeedback": "some feedback",
|
||||
@@ -37,7 +37,7 @@ exports[`AnswerOption render snapshot: renders correct option with feedback 1`]
|
||||
<Body>
|
||||
<injectIntl(ShimmedIntlComponent)
|
||||
answer={
|
||||
Object {
|
||||
{
|
||||
"correct": true,
|
||||
"id": "A",
|
||||
"selectedFeedback": "some feedback",
|
||||
@@ -45,7 +45,7 @@ exports[`AnswerOption render snapshot: renders correct option with feedback 1`]
|
||||
}
|
||||
}
|
||||
intl={
|
||||
Object {
|
||||
{
|
||||
"formatMessage": [Function],
|
||||
}
|
||||
}
|
||||
@@ -87,7 +87,7 @@ exports[`AnswerOption render snapshot: renders correct option with numeric input
|
||||
>
|
||||
<Checker
|
||||
answer={
|
||||
Object {
|
||||
{
|
||||
"correct": true,
|
||||
"id": "A",
|
||||
"selectedFeedback": "some feedback",
|
||||
@@ -114,7 +114,7 @@ exports[`AnswerOption render snapshot: renders correct option with numeric input
|
||||
<Body>
|
||||
<injectIntl(ShimmedIntlComponent)
|
||||
answer={
|
||||
Object {
|
||||
{
|
||||
"correct": true,
|
||||
"id": "A",
|
||||
"selectedFeedback": "some feedback",
|
||||
@@ -122,7 +122,7 @@ exports[`AnswerOption render snapshot: renders correct option with numeric input
|
||||
}
|
||||
}
|
||||
intl={
|
||||
Object {
|
||||
{
|
||||
"formatMessage": [Function],
|
||||
}
|
||||
}
|
||||
@@ -164,7 +164,7 @@ exports[`AnswerOption render snapshot: renders correct option with numeric input
|
||||
>
|
||||
<Checker
|
||||
answer={
|
||||
Object {
|
||||
{
|
||||
"correct": true,
|
||||
"id": "A",
|
||||
"isAnswerRange": true,
|
||||
@@ -204,7 +204,7 @@ exports[`AnswerOption render snapshot: renders correct option with numeric input
|
||||
<Body>
|
||||
<injectIntl(ShimmedIntlComponent)
|
||||
answer={
|
||||
Object {
|
||||
{
|
||||
"correct": true,
|
||||
"id": "A",
|
||||
"isAnswerRange": true,
|
||||
@@ -214,7 +214,7 @@ exports[`AnswerOption render snapshot: renders correct option with numeric input
|
||||
}
|
||||
}
|
||||
intl={
|
||||
Object {
|
||||
{
|
||||
"formatMessage": [Function],
|
||||
}
|
||||
}
|
||||
@@ -256,7 +256,7 @@ exports[`AnswerOption render snapshot: renders correct option with selected unse
|
||||
>
|
||||
<Checker
|
||||
answer={
|
||||
Object {
|
||||
{
|
||||
"correct": true,
|
||||
"id": "A",
|
||||
"selectedFeedback": "selected feedback",
|
||||
@@ -283,7 +283,7 @@ exports[`AnswerOption render snapshot: renders correct option with selected unse
|
||||
<Body>
|
||||
<injectIntl(ShimmedIntlComponent)
|
||||
answer={
|
||||
Object {
|
||||
{
|
||||
"correct": true,
|
||||
"id": "A",
|
||||
"selectedFeedback": "selected feedback",
|
||||
@@ -292,7 +292,7 @@ exports[`AnswerOption render snapshot: renders correct option with selected unse
|
||||
}
|
||||
}
|
||||
intl={
|
||||
Object {
|
||||
{
|
||||
"formatMessage": [Function],
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ exports[`AnswersContainer render snapshot: numeric problems: answer range/answer
|
||||
>
|
||||
<mockAnswerOption
|
||||
answer={
|
||||
Object {
|
||||
{
|
||||
"correct": true,
|
||||
"id": "A",
|
||||
"isAnswerRange": true,
|
||||
@@ -110,7 +110,7 @@ exports[`AnswersContainer render snapshot: numeric problems: answer range/answer
|
||||
>
|
||||
<mockAnswerOption
|
||||
answer={
|
||||
Object {
|
||||
{
|
||||
"correct": true,
|
||||
"id": "A",
|
||||
"isAnswerRange": false,
|
||||
@@ -124,7 +124,7 @@ exports[`AnswersContainer render snapshot: numeric problems: answer range/answer
|
||||
/>
|
||||
<mockAnswerOption
|
||||
answer={
|
||||
Object {
|
||||
{
|
||||
"correct": true,
|
||||
"id": "B",
|
||||
"isAnswerRange": false,
|
||||
@@ -202,7 +202,7 @@ exports[`AnswersContainer render snapshot: renders correctly with answers 1`] =
|
||||
>
|
||||
<mockAnswerOption
|
||||
answer={
|
||||
Object {
|
||||
{
|
||||
"correct": true,
|
||||
"id": "a",
|
||||
"title": "sOMetITlE",
|
||||
@@ -213,7 +213,7 @@ exports[`AnswersContainer render snapshot: renders correctly with answers 1`] =
|
||||
/>
|
||||
<mockAnswerOption
|
||||
answer={
|
||||
Object {
|
||||
{
|
||||
"correct": true,
|
||||
"id": "b",
|
||||
"title": "sOMetITlE",
|
||||
|
||||
@@ -6,7 +6,7 @@ exports[`FeedbackBox component renders as expected with a multi select problem 1
|
||||
>
|
||||
<FeedbackControl
|
||||
answer={
|
||||
Object {
|
||||
{
|
||||
"correct": true,
|
||||
"id": "A",
|
||||
"problemType": "sOMepRObleM",
|
||||
@@ -16,17 +16,17 @@ exports[`FeedbackBox component renders as expected with a multi select problem 1
|
||||
}
|
||||
}
|
||||
feedback="some feedback"
|
||||
intl={Object {}}
|
||||
intl={{}}
|
||||
key="selectedfeedback-A"
|
||||
labelMessage={
|
||||
Object {
|
||||
{
|
||||
"defaultMessage": "Show following feedback when {answerId} {boldunderline}:",
|
||||
"description": "Label text for feedback if option is selected",
|
||||
"id": "authoring.answerwidget.feedback.selected.label",
|
||||
}
|
||||
}
|
||||
labelMessageBoldUnderline={
|
||||
Object {
|
||||
{
|
||||
"defaultMessage": "is selected",
|
||||
"description": "Bold & underlined text for feedback if option is selected",
|
||||
"id": "authoring.answerwidget.feedback.selected.label.boldunderline",
|
||||
@@ -36,7 +36,7 @@ exports[`FeedbackBox component renders as expected with a multi select problem 1
|
||||
/>
|
||||
<FeedbackControl
|
||||
answer={
|
||||
Object {
|
||||
{
|
||||
"correct": true,
|
||||
"id": "A",
|
||||
"problemType": "sOMepRObleM",
|
||||
@@ -46,17 +46,17 @@ exports[`FeedbackBox component renders as expected with a multi select problem 1
|
||||
}
|
||||
}
|
||||
feedback="unselectedFeedback"
|
||||
intl={Object {}}
|
||||
intl={{}}
|
||||
key="unselectedfeedback-A"
|
||||
labelMessage={
|
||||
Object {
|
||||
{
|
||||
"defaultMessage": "Show following feedback when {answerId} {boldunderline}:",
|
||||
"description": "Label text for feedback if option is not selected",
|
||||
"id": "authoring.answerwidget.feedback.unselected.label",
|
||||
}
|
||||
}
|
||||
labelMessageBoldUnderline={
|
||||
Object {
|
||||
{
|
||||
"defaultMessage": "is not selected",
|
||||
"description": "Bold & underlined text for feedback if option is not selected",
|
||||
"id": "authoring.answerwidget.feedback.unselected.label.boldunderline",
|
||||
@@ -73,7 +73,7 @@ exports[`FeedbackBox component renders as expected with a numeric input problem
|
||||
>
|
||||
<FeedbackControl
|
||||
answer={
|
||||
Object {
|
||||
{
|
||||
"correct": true,
|
||||
"id": "A",
|
||||
"problemType": "sOMepRObleM",
|
||||
@@ -83,17 +83,17 @@ exports[`FeedbackBox component renders as expected with a numeric input problem
|
||||
}
|
||||
}
|
||||
feedback="some feedback"
|
||||
intl={Object {}}
|
||||
intl={{}}
|
||||
key="selectedfeedback-A"
|
||||
labelMessage={
|
||||
Object {
|
||||
{
|
||||
"defaultMessage": "Show following feedback when {answerId} {boldunderline}:",
|
||||
"description": "Label text for feedback if option is selected",
|
||||
"id": "authoring.answerwidget.feedback.selected.label",
|
||||
}
|
||||
}
|
||||
labelMessageBoldUnderline={
|
||||
Object {
|
||||
{
|
||||
"defaultMessage": "is selected",
|
||||
"description": "Bold & underlined text for feedback if option is selected",
|
||||
"id": "authoring.answerwidget.feedback.selected.label.boldunderline",
|
||||
@@ -110,7 +110,7 @@ exports[`FeedbackBox component renders as expected with default props 1`] = `
|
||||
>
|
||||
<FeedbackControl
|
||||
answer={
|
||||
Object {
|
||||
{
|
||||
"correct": true,
|
||||
"id": "A",
|
||||
"problemType": "sOMepRObleM",
|
||||
@@ -120,17 +120,17 @@ exports[`FeedbackBox component renders as expected with default props 1`] = `
|
||||
}
|
||||
}
|
||||
feedback="some feedback"
|
||||
intl={Object {}}
|
||||
intl={{}}
|
||||
key="selectedfeedback-A"
|
||||
labelMessage={
|
||||
Object {
|
||||
{
|
||||
"defaultMessage": "Show following feedback when {answerId} {boldunderline}:",
|
||||
"description": "Label text for feedback if option is selected",
|
||||
"id": "authoring.answerwidget.feedback.selected.label",
|
||||
}
|
||||
}
|
||||
labelMessageBoldUnderline={
|
||||
Object {
|
||||
{
|
||||
"defaultMessage": "is selected",
|
||||
"description": "Bold & underlined text for feedback if option is selected",
|
||||
"id": "authoring.answerwidget.feedback.selected.label.boldunderline",
|
||||
|
||||
@@ -10,7 +10,7 @@ exports[`FeedbackControl component renders 1`] = `
|
||||
1="s"
|
||||
2="g"
|
||||
values={
|
||||
Object {
|
||||
{
|
||||
"answerId": "A",
|
||||
"boldunderline": <b>
|
||||
<u>
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
exports[`RandomizationCard snapshot snapshot: renders general feedback setting card 1`] = `
|
||||
<SettingsOption
|
||||
className=""
|
||||
extraSections={Array []}
|
||||
extraSections={[]}
|
||||
hasExpandableTextArea={false}
|
||||
none={false}
|
||||
summary={
|
||||
Object {
|
||||
{
|
||||
"defaultMessage": "sUmmary",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ exports[`GroupFeedbackRow snapshot snapshot: renders hints row 1`] = `
|
||||
<Form.CheckboxSet
|
||||
onChange={[MockFunction handleAnswersSelectedChange]}
|
||||
value={
|
||||
Array [
|
||||
[
|
||||
"A",
|
||||
"C",
|
||||
]
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
exports[`HintsCard snapshot snapshot: renders groupFeedbacks setting card multiple groupFeedbacks 1`] = `
|
||||
<SettingsOption
|
||||
className=""
|
||||
extraSections={Array []}
|
||||
extraSections={[]}
|
||||
hasExpandableTextArea={true}
|
||||
none={false}
|
||||
summary=""
|
||||
@@ -20,7 +20,7 @@ exports[`HintsCard snapshot snapshot: renders groupFeedbacks setting card multip
|
||||
</div>
|
||||
<injectIntl(ShimmedIntlComponent)
|
||||
answers={
|
||||
Array [
|
||||
[
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
@@ -30,8 +30,8 @@ exports[`HintsCard snapshot snapshot: renders groupFeedbacks setting card multip
|
||||
key="1"
|
||||
props="propsValue"
|
||||
value={
|
||||
Object {
|
||||
"answers": Array [
|
||||
{
|
||||
"answers": [
|
||||
"A",
|
||||
"C",
|
||||
],
|
||||
@@ -43,7 +43,7 @@ exports[`HintsCard snapshot snapshot: renders groupFeedbacks setting card multip
|
||||
/>
|
||||
<injectIntl(ShimmedIntlComponent)
|
||||
answers={
|
||||
Array [
|
||||
[
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
@@ -53,8 +53,8 @@ exports[`HintsCard snapshot snapshot: renders groupFeedbacks setting card multip
|
||||
key="2"
|
||||
props="propsValue"
|
||||
value={
|
||||
Object {
|
||||
"answers": Array [
|
||||
{
|
||||
"answers": [
|
||||
"A",
|
||||
],
|
||||
"feedback": "sOmE FeEDBACK oTher FeEdback",
|
||||
@@ -82,7 +82,7 @@ exports[`HintsCard snapshot snapshot: renders groupFeedbacks setting card multip
|
||||
exports[`HintsCard snapshot snapshot: renders groupFeedbacks setting card no groupFeedbacks 1`] = `
|
||||
<SettingsOption
|
||||
className=""
|
||||
extraSections={Array []}
|
||||
extraSections={[]}
|
||||
hasExpandableTextArea={true}
|
||||
none={true}
|
||||
summary="None"
|
||||
@@ -116,7 +116,7 @@ exports[`HintsCard snapshot snapshot: renders groupFeedbacks setting card no gro
|
||||
exports[`HintsCard snapshot snapshot: renders groupFeedbacks setting card one groupFeedback 1`] = `
|
||||
<SettingsOption
|
||||
className=""
|
||||
extraSections={Array []}
|
||||
extraSections={[]}
|
||||
hasExpandableTextArea={true}
|
||||
none={false}
|
||||
summary="groupFeedback1"
|
||||
@@ -133,7 +133,7 @@ exports[`HintsCard snapshot snapshot: renders groupFeedbacks setting card one gr
|
||||
</div>
|
||||
<injectIntl(ShimmedIntlComponent)
|
||||
answers={
|
||||
Array [
|
||||
[
|
||||
"A",
|
||||
"B",
|
||||
"C",
|
||||
@@ -143,8 +143,8 @@ exports[`HintsCard snapshot snapshot: renders groupFeedbacks setting card one gr
|
||||
key="1"
|
||||
props="propsValue"
|
||||
value={
|
||||
Object {
|
||||
"answers": Array [
|
||||
{
|
||||
"answers": [
|
||||
"A",
|
||||
"C",
|
||||
],
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
exports[`RandomizationCard snapshot snapshot: renders randomization setting card with default randomization 1`] = `
|
||||
<SettingsOption
|
||||
className=""
|
||||
extraSections={Array []}
|
||||
extraSections={[]}
|
||||
hasExpandableTextArea={false}
|
||||
none={true}
|
||||
summary="sUmmary"
|
||||
@@ -55,7 +55,7 @@ exports[`RandomizationCard snapshot snapshot: renders randomization setting card
|
||||
exports[`RandomizationCard snapshot snapshot: renders randomization setting card with randomization defined 1`] = `
|
||||
<SettingsOption
|
||||
className=""
|
||||
extraSections={Array []}
|
||||
extraSections={[]}
|
||||
hasExpandableTextArea={false}
|
||||
none={false}
|
||||
summary="sUmmary"
|
||||
@@ -107,7 +107,7 @@ exports[`RandomizationCard snapshot snapshot: renders randomization setting card
|
||||
exports[`RandomizationCard snapshot snapshot: renders randomization setting card with randomization null 1`] = `
|
||||
<SettingsOption
|
||||
className=""
|
||||
extraSections={Array []}
|
||||
extraSections={[]}
|
||||
hasExpandableTextArea={false}
|
||||
none={true}
|
||||
summary="sUmmary"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
exports[`HintsCard snapshot snapshot: renders hints setting card multiple hints 1`] = `
|
||||
<SettingsOption
|
||||
className=""
|
||||
extraSections={Array []}
|
||||
extraSections={[]}
|
||||
hasExpandableTextArea={true}
|
||||
none={false}
|
||||
summary=" {count, plural, =0 {} other {(+# more)}}"
|
||||
@@ -42,7 +42,7 @@ exports[`HintsCard snapshot snapshot: renders hints setting card multiple hints
|
||||
exports[`HintsCard snapshot snapshot: renders hints setting card no hints 1`] = `
|
||||
<SettingsOption
|
||||
className=""
|
||||
extraSections={Array []}
|
||||
extraSections={[]}
|
||||
hasExpandableTextArea={true}
|
||||
none={true}
|
||||
summary="None"
|
||||
@@ -67,7 +67,7 @@ exports[`HintsCard snapshot snapshot: renders hints setting card no hints 1`] =
|
||||
exports[`HintsCard snapshot snapshot: renders hints setting card one hint 1`] = `
|
||||
<SettingsOption
|
||||
className=""
|
||||
extraSections={Array []}
|
||||
extraSections={[]}
|
||||
hasExpandableTextArea={true}
|
||||
none={false}
|
||||
summary="hint1 {count, plural, =0 {} other {(+# more)}}"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
exports[`ResetCard snapshot snapshot: renders reset true setting card 1`] = `
|
||||
<SettingsOption
|
||||
className="resetCard"
|
||||
extraSections={Array []}
|
||||
extraSections={[]}
|
||||
hasExpandableTextArea={false}
|
||||
summary="False"
|
||||
title="Show reset option"
|
||||
@@ -66,7 +66,7 @@ exports[`ResetCard snapshot snapshot: renders reset true setting card 1`] = `
|
||||
exports[`ResetCard snapshot snapshot: renders reset true setting card 2`] = `
|
||||
<SettingsOption
|
||||
className="resetCard"
|
||||
extraSections={Array []}
|
||||
extraSections={[]}
|
||||
hasExpandableTextArea={false}
|
||||
summary="True"
|
||||
title="Show reset option"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
exports[`ScoringCard snapshot snapshot: scoring setting card 1`] = `
|
||||
<SettingsOption
|
||||
className="scoringCard"
|
||||
extraSections={Array []}
|
||||
extraSections={[]}
|
||||
hasExpandableTextArea={false}
|
||||
summary="{weight, plural, =0 {Ungraded} other {# points}} · {attempts, plural, =1 {# attempt} other {# attempts}}"
|
||||
title="Scoring"
|
||||
@@ -78,7 +78,7 @@ exports[`ScoringCard snapshot snapshot: scoring setting card 1`] = `
|
||||
exports[`ScoringCard snapshot snapshot: scoring setting card max attempts 1`] = `
|
||||
<SettingsOption
|
||||
className="scoringCard"
|
||||
extraSections={Array []}
|
||||
extraSections={[]}
|
||||
hasExpandableTextArea={false}
|
||||
summary="{weight, plural, =0 {Ungraded} other {# points}} · Unlimited attempts"
|
||||
title="Scoring"
|
||||
@@ -153,7 +153,7 @@ exports[`ScoringCard snapshot snapshot: scoring setting card max attempts 1`] =
|
||||
exports[`ScoringCard snapshot snapshot: scoring setting card zero zero weight 1`] = `
|
||||
<SettingsOption
|
||||
className="scoringCard"
|
||||
extraSections={Array []}
|
||||
extraSections={[]}
|
||||
hasExpandableTextArea={false}
|
||||
summary="{weight, plural, =0 {Ungraded} other {# points}} · {attempts, plural, =1 {# attempt} other {# attempts}}"
|
||||
title="Scoring"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
exports[`ShowAnswerCard snapshot snapshot: show answer setting card 1`] = `
|
||||
<SettingsOption
|
||||
className=""
|
||||
extraSections={Array []}
|
||||
extraSections={[]}
|
||||
hasExpandableTextArea={false}
|
||||
summary="After Some Number of Attempts"
|
||||
title="Show answer"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
exports[`TimerCard snapshot snapshot: renders reset true setting card 1`] = `
|
||||
<SettingsOption
|
||||
className=""
|
||||
extraSections={Array []}
|
||||
extraSections={[]}
|
||||
hasExpandableTextArea={false}
|
||||
summary="5 seconds"
|
||||
title="Time between attempts"
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
exports[`TypeCard snapshot snapshot: renders type setting card 1`] = `
|
||||
<SettingsOption
|
||||
className=""
|
||||
extraSections={Array []}
|
||||
extraSections={[]}
|
||||
hasExpandableTextArea={false}
|
||||
summary="Text input"
|
||||
title="Type"
|
||||
>
|
||||
<TypeRow
|
||||
answers={Array []}
|
||||
answers={[]}
|
||||
blockTitle="BLocktiTLE"
|
||||
correctAnswerCount={0}
|
||||
key="multiplechoiceresponse"
|
||||
@@ -23,7 +23,7 @@ exports[`TypeCard snapshot snapshot: renders type setting card 1`] = `
|
||||
updateField={[MockFunction args.updateField]}
|
||||
/>
|
||||
<TypeRow
|
||||
answers={Array []}
|
||||
answers={[]}
|
||||
blockTitle="BLocktiTLE"
|
||||
correctAnswerCount={0}
|
||||
key="choiceresponse"
|
||||
@@ -37,7 +37,7 @@ exports[`TypeCard snapshot snapshot: renders type setting card 1`] = `
|
||||
updateField={[MockFunction args.updateField]}
|
||||
/>
|
||||
<TypeRow
|
||||
answers={Array []}
|
||||
answers={[]}
|
||||
blockTitle="BLocktiTLE"
|
||||
correctAnswerCount={0}
|
||||
key="optionresponse"
|
||||
@@ -51,7 +51,7 @@ exports[`TypeCard snapshot snapshot: renders type setting card 1`] = `
|
||||
updateField={[MockFunction args.updateField]}
|
||||
/>
|
||||
<TypeRow
|
||||
answers={Array []}
|
||||
answers={[]}
|
||||
blockTitle="BLocktiTLE"
|
||||
correctAnswerCount={0}
|
||||
key="numericalresponse"
|
||||
@@ -65,7 +65,7 @@ exports[`TypeCard snapshot snapshot: renders type setting card 1`] = `
|
||||
updateField={[MockFunction args.updateField]}
|
||||
/>
|
||||
<TypeRow
|
||||
answers={Array []}
|
||||
answers={[]}
|
||||
blockTitle="BLocktiTLE"
|
||||
correctAnswerCount={0}
|
||||
key="stringresponse"
|
||||
|
||||
@@ -51,7 +51,7 @@ exports[`EditorProblemView component renders raw editor 1`] = `
|
||||
<RawEditor
|
||||
content={null}
|
||||
editorRef={
|
||||
Object {
|
||||
{
|
||||
"current": null,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ exports[`Preview snapshots snapshots: renders as expected with problemType is ch
|
||||
<Container
|
||||
className="bg-light-300 rounded p-4"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "400px",
|
||||
"width": "494px",
|
||||
}
|
||||
@@ -52,7 +52,7 @@ exports[`Preview snapshots snapshots: renders as expected with problemType is mu
|
||||
<Container
|
||||
className="bg-light-300 rounded p-4"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "400px",
|
||||
"width": "494px",
|
||||
}
|
||||
@@ -98,7 +98,7 @@ exports[`Preview snapshots snapshots: renders as expected with problemType is nu
|
||||
<Container
|
||||
className="bg-light-300 rounded p-4"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "400px",
|
||||
"width": "494px",
|
||||
}
|
||||
@@ -144,7 +144,7 @@ exports[`Preview snapshots snapshots: renders as expected with problemType is op
|
||||
<Container
|
||||
className="bg-light-300 rounded p-4"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "400px",
|
||||
"width": "494px",
|
||||
}
|
||||
@@ -190,7 +190,7 @@ exports[`Preview snapshots snapshots: renders as expected with problemType is st
|
||||
<Container
|
||||
className="bg-light-300 rounded p-4"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "400px",
|
||||
"width": "494px",
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
exports[`ProblemTypeSelect snapshot DROPDOWN 1`] = `
|
||||
<Container
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "400px",
|
||||
"width": "494px",
|
||||
}
|
||||
@@ -108,7 +108,7 @@ exports[`ProblemTypeSelect snapshot DROPDOWN 1`] = `
|
||||
exports[`ProblemTypeSelect snapshot MULTISELECT 1`] = `
|
||||
<Container
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "400px",
|
||||
"width": "494px",
|
||||
}
|
||||
@@ -213,7 +213,7 @@ exports[`ProblemTypeSelect snapshot MULTISELECT 1`] = `
|
||||
exports[`ProblemTypeSelect snapshot NUMERIC 1`] = `
|
||||
<Container
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "400px",
|
||||
"width": "494px",
|
||||
}
|
||||
@@ -318,7 +318,7 @@ exports[`ProblemTypeSelect snapshot NUMERIC 1`] = `
|
||||
exports[`ProblemTypeSelect snapshot SINGLESELECT 1`] = `
|
||||
<Container
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "400px",
|
||||
"width": "494px",
|
||||
}
|
||||
@@ -423,7 +423,7 @@ exports[`ProblemTypeSelect snapshot SINGLESELECT 1`] = `
|
||||
exports[`ProblemTypeSelect snapshot TEXTINPUT 1`] = `
|
||||
<Container
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "400px",
|
||||
"width": "494px",
|
||||
}
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
exports[`TextEditor snapshots block failed to load, Toast is shown 1`] = `
|
||||
<EditorContainer
|
||||
getContent={
|
||||
Object {
|
||||
"getContent": Object {
|
||||
"assets": Object {
|
||||
"sOmEaSsET": Object {
|
||||
{
|
||||
"getContent": {
|
||||
"assets": {
|
||||
"sOmEaSsET": {
|
||||
"staTICUrl": "/assets/sOmEaSsET",
|
||||
},
|
||||
},
|
||||
"editorRef": Object {
|
||||
"current": Object {
|
||||
"editorRef": {
|
||||
"current": {
|
||||
"value": "something",
|
||||
},
|
||||
},
|
||||
@@ -38,8 +38,8 @@ exports[`TextEditor snapshots block failed to load, Toast is shown 1`] = `
|
||||
<[object Object]
|
||||
editorContentHtml="eDiTablE Text"
|
||||
editorRef={
|
||||
Object {
|
||||
"current": Object {
|
||||
{
|
||||
"current": {
|
||||
"value": "something",
|
||||
},
|
||||
}
|
||||
@@ -57,15 +57,15 @@ exports[`TextEditor snapshots block failed to load, Toast is shown 1`] = `
|
||||
exports[`TextEditor snapshots loaded, raw editor 1`] = `
|
||||
<EditorContainer
|
||||
getContent={
|
||||
Object {
|
||||
"getContent": Object {
|
||||
"assets": Object {
|
||||
"sOmEaSsET": Object {
|
||||
{
|
||||
"getContent": {
|
||||
"assets": {
|
||||
"sOmEaSsET": {
|
||||
"staTICUrl": "/assets/sOmEaSsET",
|
||||
},
|
||||
},
|
||||
"editorRef": Object {
|
||||
"current": Object {
|
||||
"editorRef": {
|
||||
"current": {
|
||||
"value": "something",
|
||||
},
|
||||
},
|
||||
@@ -91,15 +91,15 @@ exports[`TextEditor snapshots loaded, raw editor 1`] = `
|
||||
</Toast>
|
||||
<RawEditor
|
||||
content={
|
||||
Object {
|
||||
"data": Object {
|
||||
{
|
||||
"data": {
|
||||
"data": "eDiTablE Text",
|
||||
},
|
||||
}
|
||||
}
|
||||
editorRef={
|
||||
Object {
|
||||
"current": Object {
|
||||
{
|
||||
"current": {
|
||||
"value": "something",
|
||||
},
|
||||
}
|
||||
@@ -113,15 +113,15 @@ exports[`TextEditor snapshots loaded, raw editor 1`] = `
|
||||
exports[`TextEditor snapshots not yet loaded, Spinner appears 1`] = `
|
||||
<EditorContainer
|
||||
getContent={
|
||||
Object {
|
||||
"getContent": Object {
|
||||
"assets": Object {
|
||||
"sOmEaSsET": Object {
|
||||
{
|
||||
"getContent": {
|
||||
"assets": {
|
||||
"sOmEaSsET": {
|
||||
"staTICUrl": "/assets/sOmEaSsET",
|
||||
},
|
||||
},
|
||||
"editorRef": Object {
|
||||
"current": Object {
|
||||
"editorRef": {
|
||||
"current": {
|
||||
"value": "something",
|
||||
},
|
||||
},
|
||||
@@ -161,15 +161,15 @@ exports[`TextEditor snapshots not yet loaded, Spinner appears 1`] = `
|
||||
exports[`TextEditor snapshots renders as expected with default behavior 1`] = `
|
||||
<EditorContainer
|
||||
getContent={
|
||||
Object {
|
||||
"getContent": Object {
|
||||
"assets": Object {
|
||||
"sOmEaSsET": Object {
|
||||
{
|
||||
"getContent": {
|
||||
"assets": {
|
||||
"sOmEaSsET": {
|
||||
"staTICUrl": "/assets/sOmEaSsET",
|
||||
},
|
||||
},
|
||||
"editorRef": Object {
|
||||
"current": Object {
|
||||
"editorRef": {
|
||||
"current": {
|
||||
"value": "something",
|
||||
},
|
||||
},
|
||||
@@ -196,8 +196,8 @@ exports[`TextEditor snapshots renders as expected with default behavior 1`] = `
|
||||
<[object Object]
|
||||
editorContentHtml="eDiTablE Text"
|
||||
editorRef={
|
||||
Object {
|
||||
"current": Object {
|
||||
{
|
||||
"current": {
|
||||
"value": "something",
|
||||
},
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ exports[`VideoEditor snapshots renders as expected with default behavior 1`] = `
|
||||
>
|
||||
<div
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"left": "50%",
|
||||
"position": "absolute",
|
||||
"top": "50%",
|
||||
|
||||
@@ -41,9 +41,6 @@ const e = {
|
||||
};
|
||||
|
||||
describe('Video Settings DurationWidget hooks', () => {
|
||||
afterEach(() => {
|
||||
jest.restoreAllMocks();
|
||||
});
|
||||
describe('durationWidget', () => {
|
||||
const duration = {
|
||||
startTime: '00:00:00',
|
||||
@@ -53,6 +50,9 @@ describe('Video Settings DurationWidget hooks', () => {
|
||||
beforeEach(() => {
|
||||
testMethod = hooks.durationWidget({ duration, updateField });
|
||||
});
|
||||
afterEach(() => {
|
||||
jest.restoreAllMocks();
|
||||
});
|
||||
describe('behavior', () => {
|
||||
describe('initialization', () => {
|
||||
test('useEffect memoized on duration', () => {
|
||||
@@ -68,35 +68,45 @@ describe('Video Settings DurationWidget hooks', () => {
|
||||
});
|
||||
});
|
||||
describe('returns', () => {
|
||||
testMethod = hooks.durationWidget({ duration, updateField });
|
||||
beforeEach(() => {
|
||||
testMethod = hooks.durationWidget({ duration, updateField });
|
||||
});
|
||||
afterEach(() => {
|
||||
jest.restoreAllMocks();
|
||||
});
|
||||
describe('unsavedDuration, defaulted to duration', () => {
|
||||
expect(testMethod.unsavedDuration).toEqual({ state: hooks.durationString(duration) });
|
||||
it('should default unsavedDuration to duration', () => {
|
||||
expect(testMethod.unsavedDuration).toEqual({ state: hooks.durationString(duration) });
|
||||
});
|
||||
});
|
||||
describe('onBlur, calls updateDuration', () => {
|
||||
jest.spyOn(hooks, 'updateDuration').mockImplementation(jest.fn());
|
||||
testMethod.onBlur('IndEX')(e);
|
||||
expect(hooks.updateDuration).toHaveBeenCalled();
|
||||
describe('onBlur', () => {
|
||||
it('calls updateDuration on blur', () => {
|
||||
jest.spyOn(hooks, 'updateDuration').mockImplementation(jest.fn());
|
||||
testMethod.onBlur('IndEX')(e);
|
||||
expect(hooks.updateDuration).toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
describe('onChange', () => {
|
||||
testMethod.onChange('IndEX')(e);
|
||||
expect(React.updateState).toHaveBeenCalled();
|
||||
it('calls updateState on change', () => {
|
||||
testMethod.onChange('IndEX')(e);
|
||||
expect(React.updateState).toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
describe('onKeyDown', () => {
|
||||
testMethod.onKeyDown('iNDex')(e);
|
||||
expect(React.updateState).toHaveBeenCalled();
|
||||
it('calls updateState on key down', () => {
|
||||
testMethod.onKeyDown('iNDex')(e);
|
||||
expect(React.updateState).toHaveBeenCalled();
|
||||
});
|
||||
});
|
||||
describe('getTotalLabel', () => {
|
||||
describe('returns fullVideoLength message when no startTime and no stop Time are set', () => {
|
||||
it('returns fullVideoLength message when no startTime and no stop Time are set', () => {
|
||||
expect(testMethod.getTotalLabel({
|
||||
durationString: {},
|
||||
subtitle: true,
|
||||
intl,
|
||||
})).toEqual(messages.fullVideoLength);
|
||||
});
|
||||
describe('returns startAt message for subtitle when only startTime is set', () => {
|
||||
it('returns startAt message for subtitle when only startTime is set', () => {
|
||||
expect(testMethod.getTotalLabel({
|
||||
durationString: {
|
||||
startTime: '00:00:00',
|
||||
@@ -105,7 +115,7 @@ describe('Video Settings DurationWidget hooks', () => {
|
||||
intl,
|
||||
})).toEqual(messages.startsAt);
|
||||
});
|
||||
describe('returns null for widget (not subtitle) when there only startTime is set', () => {
|
||||
it('returns null for widget (not subtitle) when there only startTime is set', () => {
|
||||
expect(testMethod.getTotalLabel({
|
||||
durationString: {
|
||||
startTime: '00:00:00',
|
||||
@@ -114,7 +124,7 @@ describe('Video Settings DurationWidget hooks', () => {
|
||||
intl,
|
||||
})).toEqual(null);
|
||||
});
|
||||
describe('returns total message when at least stopTime is set', () => {
|
||||
it('returns total message when at least stopTime is set', () => {
|
||||
expect(testMethod.getTotalLabel({
|
||||
durationString: {
|
||||
startTime: '00:00:00',
|
||||
@@ -124,7 +134,7 @@ describe('Video Settings DurationWidget hooks', () => {
|
||||
intl,
|
||||
})).toEqual(messages.total);
|
||||
});
|
||||
describe('returns custom message when at least stopTime is set and subtitle is true', () => {
|
||||
it('returns custom message when at least stopTime is set and subtitle is true', () => {
|
||||
expect(testMethod.getTotalLabel({
|
||||
durationString: {
|
||||
startTime: '00:00:00',
|
||||
|
||||
@@ -20,7 +20,7 @@ exports[`HandoutWidget snapshots snapshots: renders as expected with default pro
|
||||
</ErrorAlert>
|
||||
<UploadErrorAlert
|
||||
message={
|
||||
Object {
|
||||
{
|
||||
"defaultMessage": "Failed to upload handout. Please try again.",
|
||||
"description": "Message presented to user when handout fails to upload",
|
||||
"id": "authoring.videoeditor.handout.error.uploadHandoutError",
|
||||
@@ -29,10 +29,10 @@ exports[`HandoutWidget snapshots snapshots: renders as expected with default pro
|
||||
/>
|
||||
<FileInput
|
||||
fileInput={
|
||||
Object {
|
||||
{
|
||||
"addFile": [Function],
|
||||
"click": [Function],
|
||||
"ref": Object {
|
||||
"ref": {
|
||||
"current": undefined,
|
||||
},
|
||||
}
|
||||
@@ -43,7 +43,7 @@ exports[`HandoutWidget snapshots snapshots: renders as expected with default pro
|
||||
>
|
||||
<FormattedMessage
|
||||
defaultMessage="Add a handout to accompany this video. Learners can download
|
||||
this file by clicking \\"Download Handout\\" below the video."
|
||||
this file by clicking "Download Handout" below the video."
|
||||
description="Message displayed when uploading a handout"
|
||||
id="authoring.videoeditor.handout.upload.addHandoutMessage"
|
||||
/>
|
||||
@@ -83,7 +83,7 @@ exports[`HandoutWidget snapshots snapshots: renders as expected with handout 1`]
|
||||
</ErrorAlert>
|
||||
<UploadErrorAlert
|
||||
message={
|
||||
Object {
|
||||
{
|
||||
"defaultMessage": "Failed to upload handout. Please try again.",
|
||||
"description": "Message presented to user when handout fails to upload",
|
||||
"id": "authoring.videoeditor.handout.error.uploadHandoutError",
|
||||
@@ -92,10 +92,10 @@ exports[`HandoutWidget snapshots snapshots: renders as expected with handout 1`]
|
||||
/>
|
||||
<FileInput
|
||||
fileInput={
|
||||
Object {
|
||||
{
|
||||
"addFile": [Function],
|
||||
"click": [Function],
|
||||
"ref": Object {
|
||||
"ref": {
|
||||
"current": undefined,
|
||||
},
|
||||
}
|
||||
@@ -154,7 +154,7 @@ exports[`HandoutWidget snapshots snapshots: renders as expected with handout 1`]
|
||||
</Dropdown>
|
||||
</ActionRow>
|
||||
<FormattedMessage
|
||||
defaultMessage="Learners can download this file by clicking \\"Download Handout\\" below the video."
|
||||
defaultMessage="Learners can download this file by clicking "Download Handout" below the video."
|
||||
description="Message presented to user when a handout is present"
|
||||
id="authoring.videoeditor.handout.handoutHelpMessage"
|
||||
/>
|
||||
|
||||
@@ -7,7 +7,7 @@ exports[`LicenseBlurb snapshots snapshots: renders as expected when details.attr
|
||||
<Icon
|
||||
className="mr-1"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "18px",
|
||||
"width": "18px",
|
||||
}
|
||||
@@ -16,7 +16,7 @@ exports[`LicenseBlurb snapshots snapshots: renders as expected when details.attr
|
||||
<Icon
|
||||
className="mr-1 text-primary-300"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "18px",
|
||||
"width": "18px",
|
||||
}
|
||||
@@ -25,7 +25,7 @@ exports[`LicenseBlurb snapshots snapshots: renders as expected when details.attr
|
||||
<Icon
|
||||
className="mr-1"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "18px",
|
||||
"width": "18px",
|
||||
}
|
||||
@@ -50,7 +50,7 @@ exports[`LicenseBlurb snapshots snapshots: renders as expected when details.attr
|
||||
<Icon
|
||||
className="mr-1"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "18px",
|
||||
"width": "18px",
|
||||
}
|
||||
@@ -59,7 +59,7 @@ exports[`LicenseBlurb snapshots snapshots: renders as expected when details.attr
|
||||
<Icon
|
||||
className="mr-1 text-primary-300"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "18px",
|
||||
"width": "18px",
|
||||
}
|
||||
@@ -68,7 +68,7 @@ exports[`LicenseBlurb snapshots snapshots: renders as expected when details.attr
|
||||
<Icon
|
||||
className="mr-1"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "18px",
|
||||
"width": "18px",
|
||||
}
|
||||
@@ -93,7 +93,7 @@ exports[`LicenseBlurb snapshots snapshots: renders as expected when details.attr
|
||||
<Icon
|
||||
className="mr-1"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "18px",
|
||||
"width": "18px",
|
||||
}
|
||||
@@ -102,7 +102,7 @@ exports[`LicenseBlurb snapshots snapshots: renders as expected when details.attr
|
||||
<Icon
|
||||
className="mr-1 text-primary-300"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "18px",
|
||||
"width": "18px",
|
||||
}
|
||||
@@ -111,7 +111,7 @@ exports[`LicenseBlurb snapshots snapshots: renders as expected when details.attr
|
||||
<Icon
|
||||
className="mr-1"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "18px",
|
||||
"width": "18px",
|
||||
}
|
||||
@@ -136,7 +136,7 @@ exports[`LicenseBlurb snapshots snapshots: renders as expected when details.attr
|
||||
<Icon
|
||||
className="mr-1"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "18px",
|
||||
"width": "18px",
|
||||
}
|
||||
@@ -145,7 +145,7 @@ exports[`LicenseBlurb snapshots snapshots: renders as expected when details.attr
|
||||
<Icon
|
||||
className="mr-1 text-primary-300"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "18px",
|
||||
"width": "18px",
|
||||
}
|
||||
@@ -170,7 +170,7 @@ exports[`LicenseBlurb snapshots snapshots: renders as expected with default prop
|
||||
<Icon
|
||||
className="mr-1"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "18px",
|
||||
"width": "18px",
|
||||
}
|
||||
@@ -195,7 +195,7 @@ exports[`LicenseBlurb snapshots snapshots: renders as expected with license equa
|
||||
<Icon
|
||||
className="mr-1"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "18px",
|
||||
"width": "18px",
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ exports[`LicenseDetails snapshots snapshots: renders as expected with level set
|
||||
</Form.Group>
|
||||
<div>
|
||||
<FormattedMessage
|
||||
defaultMessage="Allow others to copy, distribute, display and perform only verbatim copies of your work, not derivative works based upon it. This option is incompatible with \\"Share Alike\\"."
|
||||
defaultMessage="Allow others to copy, distribute, display and perform only verbatim copies of your work, not derivative works based upon it. This option is incompatible with "Share Alike"."
|
||||
description="No Derivatives card section defining no derivatives license"
|
||||
id="authoring.videoeditor.license.noDerivativesSectionDescription"
|
||||
/>
|
||||
@@ -139,7 +139,7 @@ exports[`LicenseDetails snapshots snapshots: renders as expected with level set
|
||||
</Form.Group>
|
||||
<div>
|
||||
<FormattedMessage
|
||||
defaultMessage="Allow others to distribute derivative works only under a license identical to the license that governs your work. This option is incompatible with \\"No Derivatives\\"."
|
||||
defaultMessage="Allow others to distribute derivative works only under a license identical to the license that governs your work. This option is incompatible with "No Derivatives"."
|
||||
description="Share Alike card section defining no derivatives license"
|
||||
id="authoring.videoeditor.license.shareAlikeSectionDescription"
|
||||
/>
|
||||
|
||||
@@ -17,7 +17,7 @@ exports[`LicenseDisplay snapshots snapshots: renders as expected with default pr
|
||||
className="small border border-gray-300 rounded p-4"
|
||||
>
|
||||
<injectIntl(ShimmedIntlComponent)
|
||||
details={Object {}}
|
||||
details={{}}
|
||||
license="all-rights-reserved"
|
||||
/>
|
||||
<div
|
||||
@@ -57,7 +57,7 @@ exports[`LicenseDisplay snapshots snapshots: renders as expected with level set
|
||||
className="small border border-gray-300 rounded p-4"
|
||||
>
|
||||
<injectIntl(ShimmedIntlComponent)
|
||||
details={Object {}}
|
||||
details={{}}
|
||||
license="all-rights-reserved"
|
||||
/>
|
||||
<div
|
||||
@@ -97,7 +97,7 @@ exports[`LicenseDisplay snapshots snapshots: renders as expected with level set
|
||||
className="small border border-gray-300 rounded p-4"
|
||||
>
|
||||
<injectIntl(ShimmedIntlComponent)
|
||||
details={Object {}}
|
||||
details={{}}
|
||||
license="creative-commons"
|
||||
/>
|
||||
<div
|
||||
@@ -139,7 +139,7 @@ exports[`LicenseDisplay snapshots snapshots: renders as expected with level set
|
||||
className="small border border-gray-300 rounded p-4"
|
||||
>
|
||||
<injectIntl(ShimmedIntlComponent)
|
||||
details={Object {}}
|
||||
details={{}}
|
||||
license="all-rights-reserved"
|
||||
/>
|
||||
<div
|
||||
|
||||
@@ -5,7 +5,7 @@ exports[`LicenseWidget snapshots snapshots: renders as expected with default pro
|
||||
subtitle={
|
||||
<div>
|
||||
<injectIntl(ShimmedIntlComponent)
|
||||
details={Object {}}
|
||||
details={{}}
|
||||
license="all-rights-reserved"
|
||||
/>
|
||||
<div
|
||||
@@ -30,12 +30,12 @@ exports[`LicenseWidget snapshots snapshots: renders as expected with default pro
|
||||
license="all-rights-reserved"
|
||||
/>
|
||||
<injectIntl(ShimmedIntlComponent)
|
||||
details={Object {}}
|
||||
details={{}}
|
||||
level="course"
|
||||
license="all-rights-reserved"
|
||||
/>
|
||||
<injectIntl(ShimmedIntlComponent)
|
||||
details={Object {}}
|
||||
details={{}}
|
||||
license="all-rights-reserved"
|
||||
licenseDescription={
|
||||
<FormattedMessage
|
||||
@@ -72,7 +72,7 @@ exports[`LicenseWidget snapshots snapshots: renders as expected with isLibrary t
|
||||
subtitle={
|
||||
<div>
|
||||
<injectIntl(ShimmedIntlComponent)
|
||||
details={Object {}}
|
||||
details={{}}
|
||||
license="all-rights-reserved"
|
||||
/>
|
||||
<div
|
||||
@@ -97,12 +97,12 @@ exports[`LicenseWidget snapshots snapshots: renders as expected with isLibrary t
|
||||
license="all-rights-reserved"
|
||||
/>
|
||||
<injectIntl(ShimmedIntlComponent)
|
||||
details={Object {}}
|
||||
details={{}}
|
||||
level="library"
|
||||
license="all-rights-reserved"
|
||||
/>
|
||||
<injectIntl(ShimmedIntlComponent)
|
||||
details={Object {}}
|
||||
details={{}}
|
||||
license="all-rights-reserved"
|
||||
licenseDescription={
|
||||
<FormattedMessage
|
||||
@@ -122,7 +122,7 @@ exports[`LicenseWidget snapshots snapshots: renders as expected with licenseType
|
||||
subtitle={
|
||||
<div>
|
||||
<injectIntl(ShimmedIntlComponent)
|
||||
details={Object {}}
|
||||
details={{}}
|
||||
license="all-rights-reserved"
|
||||
/>
|
||||
<div
|
||||
@@ -147,12 +147,12 @@ exports[`LicenseWidget snapshots snapshots: renders as expected with licenseType
|
||||
license="all-rights-reserved"
|
||||
/>
|
||||
<injectIntl(ShimmedIntlComponent)
|
||||
details={Object {}}
|
||||
details={{}}
|
||||
level="block"
|
||||
license="all-rights-reserved"
|
||||
/>
|
||||
<injectIntl(ShimmedIntlComponent)
|
||||
details={Object {}}
|
||||
details={{}}
|
||||
license="all-rights-reserved"
|
||||
licenseDescription={
|
||||
<FormattedMessage
|
||||
|
||||
@@ -123,10 +123,10 @@ exports[`ThumbnailWidget snapshots snapshots: renders as expected where videoId
|
||||
<FileInput
|
||||
acceptedFiles=".gif,.jpg,.jpeg,.png,.bmp,.bmp2"
|
||||
fileInput={
|
||||
Object {
|
||||
{
|
||||
"addFile": [Function],
|
||||
"click": [Function],
|
||||
"ref": Object {
|
||||
"ref": {
|
||||
"current": undefined,
|
||||
},
|
||||
}
|
||||
@@ -242,10 +242,10 @@ exports[`ThumbnailWidget snapshots snapshots: renders as expected with default p
|
||||
<FileInput
|
||||
acceptedFiles=".gif,.jpg,.jpeg,.png,.bmp,.bmp2"
|
||||
fileInput={
|
||||
Object {
|
||||
{
|
||||
"addFile": [Function],
|
||||
"click": [Function],
|
||||
"ref": Object {
|
||||
"ref": {
|
||||
"current": undefined,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -43,10 +43,10 @@ exports[`LanguageSelector snapshot transcript option 1`] = `
|
||||
<FileInput
|
||||
acceptedFiles=".srt"
|
||||
fileInput={
|
||||
Object {
|
||||
{
|
||||
"addFile": [Function],
|
||||
"click": [Function],
|
||||
"ref": Object {
|
||||
"ref": {
|
||||
"current": undefined,
|
||||
},
|
||||
}
|
||||
@@ -98,10 +98,10 @@ exports[`LanguageSelector snapshots -- no transcripts no Open Languages, all sho
|
||||
<FileInput
|
||||
acceptedFiles=".srt"
|
||||
fileInput={
|
||||
Object {
|
||||
{
|
||||
"addFile": [Function],
|
||||
"click": [Function],
|
||||
"ref": Object {
|
||||
"ref": {
|
||||
"current": undefined,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ exports[`TranscriptActionMenu Snapshots snapshots: renders as expected with defa
|
||||
<FileInput
|
||||
acceptedFiles=".srt"
|
||||
fileInput={
|
||||
Object {
|
||||
{
|
||||
"click": [MockFunction click input],
|
||||
"onAddFile": [MockFunction module.hooks.replaceFileCallback],
|
||||
}
|
||||
@@ -99,7 +99,7 @@ exports[`TranscriptActionMenu Snapshots snapshots: renders as expected with tran
|
||||
<FileInput
|
||||
acceptedFiles=".srt"
|
||||
fileInput={
|
||||
Object {
|
||||
{
|
||||
"click": [MockFunction click input],
|
||||
"onAddFile": [MockFunction module.hooks.replaceFileCallback],
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ exports[`TranscriptWidget component snapshots snapshot: renders ErrorAlert with
|
||||
>
|
||||
<Icon
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "16px",
|
||||
"width": "16px",
|
||||
}
|
||||
@@ -197,7 +197,7 @@ exports[`TranscriptWidget component snapshots snapshot: renders ErrorAlert with
|
||||
>
|
||||
<Icon
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "16px",
|
||||
"width": "16px",
|
||||
}
|
||||
@@ -316,7 +316,7 @@ exports[`TranscriptWidget component snapshots snapshots: renders as expected wit
|
||||
>
|
||||
<Icon
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "16px",
|
||||
"width": "16px",
|
||||
}
|
||||
@@ -556,7 +556,7 @@ exports[`TranscriptWidget component snapshots snapshots: renders as expected wit
|
||||
>
|
||||
<Icon
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "16px",
|
||||
"width": "16px",
|
||||
}
|
||||
@@ -734,7 +734,7 @@ exports[`TranscriptWidget component snapshots snapshots: renders as expected wit
|
||||
>
|
||||
<Icon
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "16px",
|
||||
"width": "16px",
|
||||
}
|
||||
@@ -853,7 +853,7 @@ exports[`TranscriptWidget component snapshots snapshots: renders as expected wit
|
||||
>
|
||||
<Icon
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "16px",
|
||||
"width": "16px",
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ exports[`VideoSourceWidget snapshots snapshots: renders as expected with default
|
||||
>
|
||||
<Icon
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "16px",
|
||||
"width": "16px",
|
||||
}
|
||||
@@ -278,7 +278,7 @@ exports[`VideoSourceWidget snapshots snapshots: renders as expected with videoSh
|
||||
>
|
||||
<Icon
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "16px",
|
||||
"width": "16px",
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ exports[`CollapsibleFormWidget render snapshots: renders as expected with defaul
|
||||
<Trigger
|
||||
className="collapsible-trigger d-flex border-0 align-items-center pt-4 p-0"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"justifyContent": "unset",
|
||||
}
|
||||
}
|
||||
@@ -79,7 +79,7 @@ exports[`CollapsibleFormWidget render snapshots: renders with open={true} when t
|
||||
<Trigger
|
||||
className="collapsible-trigger d-flex border-0 align-items-center pt-4 p-0"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"justifyContent": "unset",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`VideoUploader renders as expected with default behavior 1`] = `
|
||||
Object {
|
||||
{
|
||||
"asFragment": [Function],
|
||||
"baseElement": <body>
|
||||
<div>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`VideoUploadEditor renders as expected with default behavior 1`] = `
|
||||
Object {
|
||||
{
|
||||
"asFragment": [Function],
|
||||
"baseElement": <body>
|
||||
<div>
|
||||
|
||||
@@ -13,7 +13,7 @@ exports[`BaseModal ImageUploadModal template component snapshot 1`] = `
|
||||
>
|
||||
<ModalDialog.Header
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"boxShadow": "2px 2px 5px rgba(0, 0, 0, 0.3)",
|
||||
"zIndex": 1,
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ exports[`ExpandableTextArea snapshots renders as expected with default behavior
|
||||
<TinyMceWidget
|
||||
editorContentHtml="text"
|
||||
editorRef={
|
||||
Object {
|
||||
{
|
||||
"current": null,
|
||||
}
|
||||
}
|
||||
@@ -29,7 +29,7 @@ exports[`ExpandableTextArea snapshots renders error message 1`] = `
|
||||
<TinyMceWidget
|
||||
editorContentHtml="text"
|
||||
editorRef={
|
||||
Object {
|
||||
{
|
||||
"current": null,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ exports[`AltTextControls render snapshot: isDecorative=true errorProps.showAltTe
|
||||
floatingLabel="Alt Text"
|
||||
isInvalid={false}
|
||||
onChange={
|
||||
Object {
|
||||
{
|
||||
"hooks.onInputChange": [MockFunction props.setValue],
|
||||
}
|
||||
}
|
||||
@@ -30,7 +30,7 @@ exports[`AltTextControls render snapshot: isDecorative=true errorProps.showAltTe
|
||||
checked={true}
|
||||
className="mt-4.5 decorative-control-label"
|
||||
onChange={
|
||||
Object {
|
||||
{
|
||||
"hooks.onCheckboxChange": [MockFunction props.setIsDecorative],
|
||||
}
|
||||
}
|
||||
@@ -65,7 +65,7 @@ exports[`AltTextControls render snapshot: isDecorative=true errorProps.showAltTe
|
||||
floatingLabel="Alt Text"
|
||||
isInvalid={true}
|
||||
onChange={
|
||||
Object {
|
||||
{
|
||||
"hooks.onInputChange": [MockFunction props.setValue],
|
||||
}
|
||||
}
|
||||
@@ -85,7 +85,7 @@ exports[`AltTextControls render snapshot: isDecorative=true errorProps.showAltTe
|
||||
checked={true}
|
||||
className="mt-4.5 decorative-control-label"
|
||||
onChange={
|
||||
Object {
|
||||
{
|
||||
"hooks.onCheckboxChange": [MockFunction props.setIsDecorative],
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ exports[`DimensionControls render snapshot 1`] = `
|
||||
floatingLabel="Width"
|
||||
onBlur={[MockFunction props.updateDimensions]}
|
||||
onChange={
|
||||
Object {
|
||||
{
|
||||
"hooks.onInputChange": [MockFunction props.setWidth],
|
||||
}
|
||||
}
|
||||
@@ -32,7 +32,7 @@ exports[`DimensionControls render snapshot 1`] = `
|
||||
floatingLabel="Height"
|
||||
onBlur={[MockFunction props.updateDimensions]}
|
||||
onChange={
|
||||
Object {
|
||||
{
|
||||
"hooks.onInputChange": [MockFunction props.setHeight],
|
||||
}
|
||||
}
|
||||
@@ -68,7 +68,7 @@ exports[`DimensionControls render unlocked dimensions 1`] = `
|
||||
floatingLabel="Width"
|
||||
onBlur={[MockFunction props.updateDimensions]}
|
||||
onChange={
|
||||
Object {
|
||||
{
|
||||
"hooks.onInputChange": [MockFunction props.setWidth],
|
||||
}
|
||||
}
|
||||
@@ -79,7 +79,7 @@ exports[`DimensionControls render unlocked dimensions 1`] = `
|
||||
floatingLabel="Height"
|
||||
onBlur={[MockFunction props.updateDimensions]}
|
||||
onChange={
|
||||
Object {
|
||||
{
|
||||
"hooks.onInputChange": [MockFunction props.setHeight],
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,17 +7,17 @@ exports[`ImageSettingsModal render snapshot 1`] = `
|
||||
confirmAction={
|
||||
<Button
|
||||
onClick={
|
||||
Object {
|
||||
"hooks.onSaveClick": Object {
|
||||
"altText": Object {
|
||||
"error": Object {
|
||||
{
|
||||
"hooks.onSaveClick": {
|
||||
"altText": {
|
||||
"error": {
|
||||
"dismiss": [MockFunction],
|
||||
"show": true,
|
||||
},
|
||||
"isDecorative": false,
|
||||
"value": "alternative Taxes",
|
||||
},
|
||||
"dimensions": Object {
|
||||
"dimensions": {
|
||||
"height": 13,
|
||||
"width": 12,
|
||||
},
|
||||
@@ -74,9 +74,9 @@ exports[`ImageSettingsModal render snapshot 1`] = `
|
||||
<Image
|
||||
className="img-settings-thumbnail"
|
||||
onError={
|
||||
Object {
|
||||
"hooks.dimensions.onImgLoad.callback": Object {
|
||||
"selection": Object {
|
||||
{
|
||||
"hooks.dimensions.onImgLoad.callback": {
|
||||
"selection": {
|
||||
"altText": "AlTTExt",
|
||||
"externalUrl": "ExtERNALurL",
|
||||
"url": "UrL",
|
||||
@@ -85,9 +85,9 @@ exports[`ImageSettingsModal render snapshot 1`] = `
|
||||
}
|
||||
}
|
||||
onLoad={
|
||||
Object {
|
||||
"hooks.dimensions.onImgLoad.callback": Object {
|
||||
"selection": Object {
|
||||
{
|
||||
"hooks.dimensions.onImgLoad.callback": {
|
||||
"selection": {
|
||||
"altText": "AlTTExt",
|
||||
"externalUrl": "ExtERNALurL",
|
||||
"url": "UrL",
|
||||
@@ -107,28 +107,28 @@ exports[`ImageSettingsModal render snapshot 1`] = `
|
||||
<DimensionControls
|
||||
onImgLoad={
|
||||
[MockFunction hooks.dimensions.onImgLoad] {
|
||||
"calls": Array [
|
||||
Array [
|
||||
Object {
|
||||
"calls": [
|
||||
[
|
||||
{
|
||||
"altText": "AlTTExt",
|
||||
"externalUrl": "ExtERNALurL",
|
||||
"url": "UrL",
|
||||
},
|
||||
],
|
||||
Array [
|
||||
Object {
|
||||
[
|
||||
{
|
||||
"altText": "AlTTExt",
|
||||
"externalUrl": "ExtERNALurL",
|
||||
"url": "UrL",
|
||||
},
|
||||
],
|
||||
],
|
||||
"results": Array [
|
||||
Object {
|
||||
"results": [
|
||||
{
|
||||
"type": "return",
|
||||
"value": Object {
|
||||
"hooks.dimensions.onImgLoad.callback": Object {
|
||||
"selection": Object {
|
||||
"value": {
|
||||
"hooks.dimensions.onImgLoad.callback": {
|
||||
"selection": {
|
||||
"altText": "AlTTExt",
|
||||
"externalUrl": "ExtERNALurL",
|
||||
"url": "UrL",
|
||||
@@ -136,11 +136,11 @@ exports[`ImageSettingsModal render snapshot 1`] = `
|
||||
},
|
||||
},
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"type": "return",
|
||||
"value": Object {
|
||||
"hooks.dimensions.onImgLoad.callback": Object {
|
||||
"selection": Object {
|
||||
"value": {
|
||||
"hooks.dimensions.onImgLoad.callback": {
|
||||
"selection": {
|
||||
"altText": "AlTTExt",
|
||||
"externalUrl": "ExtERNALurL",
|
||||
"url": "UrL",
|
||||
@@ -152,7 +152,7 @@ exports[`ImageSettingsModal render snapshot 1`] = `
|
||||
}
|
||||
}
|
||||
value={
|
||||
Object {
|
||||
{
|
||||
"height": 13,
|
||||
"width": 12,
|
||||
}
|
||||
@@ -160,7 +160,7 @@ exports[`ImageSettingsModal render snapshot 1`] = `
|
||||
/>
|
||||
<AltTextControls
|
||||
error={
|
||||
Object {
|
||||
{
|
||||
"dismiss": [MockFunction],
|
||||
"show": true,
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
exports[`SelectImageModal component snapshot 1`] = `
|
||||
<SelectionModal
|
||||
acceptedFiles={
|
||||
Object {
|
||||
{
|
||||
"gif": ".gif",
|
||||
"ico": ".ico",
|
||||
"jpeg": ".jpeg",
|
||||
@@ -15,16 +15,16 @@ exports[`SelectImageModal component snapshot 1`] = `
|
||||
}
|
||||
close={[MockFunction props.close]}
|
||||
fileInput={
|
||||
Object {
|
||||
{
|
||||
"addFile": "imgHooks.fileInput.addFile",
|
||||
"click": "imgHooks.fileInput.click",
|
||||
"ref": "imgHooks.fileInput.ref",
|
||||
}
|
||||
}
|
||||
galleryError={
|
||||
Object {
|
||||
{
|
||||
"dismiss": [MockFunction],
|
||||
"message": Object {
|
||||
"message": {
|
||||
"defaultMessage": "Gallery error",
|
||||
"description": "Gallery error",
|
||||
"id": "Gallery error id",
|
||||
@@ -34,14 +34,14 @@ exports[`SelectImageModal component snapshot 1`] = `
|
||||
}
|
||||
}
|
||||
galleryProps={
|
||||
Object {
|
||||
{
|
||||
"gallery": "props",
|
||||
}
|
||||
}
|
||||
inputError={
|
||||
Object {
|
||||
{
|
||||
"dismiss": [MockFunction],
|
||||
"message": Object {
|
||||
"message": {
|
||||
"defaultMessage": "Input error",
|
||||
"description": "Input error",
|
||||
"id": "Input error id",
|
||||
@@ -52,28 +52,28 @@ exports[`SelectImageModal component snapshot 1`] = `
|
||||
}
|
||||
isOpen={true}
|
||||
modalMessages={
|
||||
Object {
|
||||
"confirmMsg": Object {
|
||||
{
|
||||
"confirmMsg": {
|
||||
"defaultMessage": "Next",
|
||||
"description": "Label for Next button",
|
||||
"id": "authoring.texteditor.selectimagemodal.next.label",
|
||||
},
|
||||
"fetchError": Object {
|
||||
"fetchError": {
|
||||
"defaultMessage": "Failed to obtain course images. Please try again.",
|
||||
"description": "Message presented to user when images are not found",
|
||||
"id": "authoring.texteditor.selectimagemodal.error.fetchImagesError",
|
||||
},
|
||||
"titleMsg": Object {
|
||||
"titleMsg": {
|
||||
"defaultMessage": "Add an image",
|
||||
"description": "Title for the select image modal",
|
||||
"id": "authoring.texteditor.selectimagemodal.title.label",
|
||||
},
|
||||
"uploadButtonMsg": Object {
|
||||
"uploadButtonMsg": {
|
||||
"defaultMessage": "Upload a new image (10 MB max)",
|
||||
"description": "Label for upload button",
|
||||
"id": "authoring.texteditor.selectimagemodal.upload.label",
|
||||
},
|
||||
"uploadError": Object {
|
||||
"uploadError": {
|
||||
"defaultMessage": "Failed to upload image. Please try again.",
|
||||
"description": "Message presented to user when image fails to upload",
|
||||
"id": "authoring.texteditor.selectimagemodal.error.uploadImageError",
|
||||
@@ -81,12 +81,12 @@ exports[`SelectImageModal component snapshot 1`] = `
|
||||
}
|
||||
}
|
||||
searchSortProps={
|
||||
Object {
|
||||
{
|
||||
"search": "sortProps",
|
||||
}
|
||||
}
|
||||
selectBtnProps={
|
||||
Object {
|
||||
{
|
||||
"select": "btnProps",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,9 +5,9 @@ exports[`ImageUploadModal component snapshot: no selection (Select Image Modal)
|
||||
clearSelection={[MockFunction props.clearSelection]}
|
||||
close={[MockFunction props.close]}
|
||||
images={
|
||||
Object {
|
||||
"current": Array [
|
||||
Object {
|
||||
{
|
||||
"current": [
|
||||
{
|
||||
"contentType": "image/png",
|
||||
"dateAdded": 1682009100000,
|
||||
"displayName": "DALL·E 2023-03-10.png",
|
||||
@@ -34,9 +34,9 @@ exports[`ImageUploadModal component snapshot: selection has no externalUrl (Sele
|
||||
clearSelection={[MockFunction props.clearSelection]}
|
||||
close={[MockFunction props.close]}
|
||||
images={
|
||||
Object {
|
||||
"current": Array [
|
||||
Object {
|
||||
{
|
||||
"current": [
|
||||
{
|
||||
"contentType": "image/png",
|
||||
"dateAdded": 1682009100000,
|
||||
"displayName": "DALL·E 2023-03-10.png",
|
||||
@@ -61,9 +61,9 @@ exports[`ImageUploadModal component snapshot: selection has no externalUrl (Sele
|
||||
exports[`ImageUploadModal component snapshot: with selection content (ImageSettingsUpload) 1`] = `
|
||||
<ImageSettingsModal
|
||||
images={
|
||||
Object {
|
||||
"current": Array [
|
||||
Object {
|
||||
{
|
||||
"current": [
|
||||
{
|
||||
"contentType": "image/png",
|
||||
"dateAdded": 1682009100000,
|
||||
"displayName": "DALL·E 2023-03-10.png",
|
||||
@@ -83,7 +83,7 @@ exports[`ImageUploadModal component snapshot: with selection content (ImageSetti
|
||||
isOpen={false}
|
||||
returnToSelection={[MockFunction props.clearSelection]}
|
||||
selection={
|
||||
Object {
|
||||
{
|
||||
"externalUrl": "sOmEuRl.cOm",
|
||||
"some": "images",
|
||||
}
|
||||
|
||||
@@ -23,8 +23,8 @@ exports[`RawEditor renders as expected with default behavior 1`] = `
|
||||
</Alert>
|
||||
<injectIntl(ShimmedIntlComponent)
|
||||
innerRef={
|
||||
Object {
|
||||
"current": Object {
|
||||
{
|
||||
"current": {
|
||||
"value": "Ref Value",
|
||||
},
|
||||
}
|
||||
@@ -39,8 +39,8 @@ exports[`RawEditor renders as expected with lang equal to xml 1`] = `
|
||||
<div>
|
||||
<injectIntl(ShimmedIntlComponent)
|
||||
innerRef={
|
||||
Object {
|
||||
"current": Object {
|
||||
{
|
||||
"current": {
|
||||
"value": "Ref Value",
|
||||
},
|
||||
}
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
exports[`TextEditor Image Gallery component component snapshot: loaded but no images, show empty gallery 1`] = `
|
||||
<[object Object]
|
||||
value={
|
||||
Object {
|
||||
{
|
||||
"$t": [Function],
|
||||
"defaultFormats": Object {},
|
||||
"defaultFormats": {},
|
||||
"defaultLocale": "en",
|
||||
"defaultRichTextElements": undefined,
|
||||
"fallbackOnEmptyString": true,
|
||||
@@ -22,8 +22,8 @@ exports[`TextEditor Image Gallery component component snapshot: loaded but no im
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"formatTimeToParts": [Function],
|
||||
"formats": Object {},
|
||||
"formatters": Object {
|
||||
"formats": {},
|
||||
"formatters": {
|
||||
"getDateTimeFormat": [Function],
|
||||
"getDisplayNames": [Function],
|
||||
"getListFormat": [Function],
|
||||
@@ -33,7 +33,7 @@ exports[`TextEditor Image Gallery component component snapshot: loaded but no im
|
||||
"getRelativeTimeFormat": [Function],
|
||||
},
|
||||
"locale": "en",
|
||||
"messages": Object {},
|
||||
"messages": {},
|
||||
"onError": [Function],
|
||||
"onWarn": [Function],
|
||||
"textComponent": Symbol(react.fragment),
|
||||
@@ -44,20 +44,20 @@ exports[`TextEditor Image Gallery component component snapshot: loaded but no im
|
||||
>
|
||||
<Gallery
|
||||
displayList={
|
||||
Array [
|
||||
Object {
|
||||
[
|
||||
{
|
||||
"id": 1,
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"id": 2,
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"id": 3,
|
||||
},
|
||||
]
|
||||
}
|
||||
emptyGalleryLabel={
|
||||
Object {
|
||||
{
|
||||
"defaultMessage": "Empty Gallery",
|
||||
"id": "emptyGalleryMsg",
|
||||
}
|
||||
@@ -77,9 +77,9 @@ exports[`TextEditor Image Gallery component component snapshot: loaded but no im
|
||||
exports[`TextEditor Image Gallery component component snapshot: loaded but search returns no images, show 0 search result gallery 1`] = `
|
||||
<[object Object]
|
||||
value={
|
||||
Object {
|
||||
{
|
||||
"$t": [Function],
|
||||
"defaultFormats": Object {},
|
||||
"defaultFormats": {},
|
||||
"defaultLocale": "en",
|
||||
"defaultRichTextElements": undefined,
|
||||
"fallbackOnEmptyString": true,
|
||||
@@ -96,8 +96,8 @@ exports[`TextEditor Image Gallery component component snapshot: loaded but searc
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"formatTimeToParts": [Function],
|
||||
"formats": Object {},
|
||||
"formatters": Object {
|
||||
"formats": {},
|
||||
"formatters": {
|
||||
"getDateTimeFormat": [Function],
|
||||
"getDisplayNames": [Function],
|
||||
"getListFormat": [Function],
|
||||
@@ -107,7 +107,7 @@ exports[`TextEditor Image Gallery component component snapshot: loaded but searc
|
||||
"getRelativeTimeFormat": [Function],
|
||||
},
|
||||
"locale": "en",
|
||||
"messages": Object {},
|
||||
"messages": {},
|
||||
"onError": [Function],
|
||||
"onWarn": [Function],
|
||||
"textComponent": Symbol(react.fragment),
|
||||
@@ -118,20 +118,20 @@ exports[`TextEditor Image Gallery component component snapshot: loaded but searc
|
||||
>
|
||||
<Gallery
|
||||
displayList={
|
||||
Array [
|
||||
Object {
|
||||
[
|
||||
{
|
||||
"id": 1,
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"id": 2,
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"id": 3,
|
||||
},
|
||||
]
|
||||
}
|
||||
emptyGalleryLabel={
|
||||
Object {
|
||||
{
|
||||
"defaultMessage": "Empty Gallery",
|
||||
"id": "emptyGalleryMsg",
|
||||
}
|
||||
@@ -151,9 +151,9 @@ exports[`TextEditor Image Gallery component component snapshot: loaded but searc
|
||||
exports[`TextEditor Image Gallery component component snapshot: loaded, show gallery 1`] = `
|
||||
<[object Object]
|
||||
value={
|
||||
Object {
|
||||
{
|
||||
"$t": [Function],
|
||||
"defaultFormats": Object {},
|
||||
"defaultFormats": {},
|
||||
"defaultLocale": "en",
|
||||
"defaultRichTextElements": undefined,
|
||||
"fallbackOnEmptyString": true,
|
||||
@@ -170,8 +170,8 @@ exports[`TextEditor Image Gallery component component snapshot: loaded, show gal
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"formatTimeToParts": [Function],
|
||||
"formats": Object {},
|
||||
"formatters": Object {
|
||||
"formats": {},
|
||||
"formatters": {
|
||||
"getDateTimeFormat": [Function],
|
||||
"getDisplayNames": [Function],
|
||||
"getListFormat": [Function],
|
||||
@@ -181,7 +181,7 @@ exports[`TextEditor Image Gallery component component snapshot: loaded, show gal
|
||||
"getRelativeTimeFormat": [Function],
|
||||
},
|
||||
"locale": "en",
|
||||
"messages": Object {},
|
||||
"messages": {},
|
||||
"onError": [Function],
|
||||
"onWarn": [Function],
|
||||
"textComponent": Symbol(react.fragment),
|
||||
@@ -192,20 +192,20 @@ exports[`TextEditor Image Gallery component component snapshot: loaded, show gal
|
||||
>
|
||||
<Gallery
|
||||
displayList={
|
||||
Array [
|
||||
Object {
|
||||
[
|
||||
{
|
||||
"id": 1,
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"id": 2,
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"id": 3,
|
||||
},
|
||||
]
|
||||
}
|
||||
emptyGalleryLabel={
|
||||
Object {
|
||||
{
|
||||
"defaultMessage": "Empty Gallery",
|
||||
"id": "emptyGalleryMsg",
|
||||
}
|
||||
@@ -225,9 +225,9 @@ exports[`TextEditor Image Gallery component component snapshot: loaded, show gal
|
||||
exports[`TextEditor Image Gallery component component snapshot: not loaded, show spinner 1`] = `
|
||||
<[object Object]
|
||||
value={
|
||||
Object {
|
||||
{
|
||||
"$t": [Function],
|
||||
"defaultFormats": Object {},
|
||||
"defaultFormats": {},
|
||||
"defaultLocale": "en",
|
||||
"defaultRichTextElements": undefined,
|
||||
"fallbackOnEmptyString": true,
|
||||
@@ -244,8 +244,8 @@ exports[`TextEditor Image Gallery component component snapshot: not loaded, show
|
||||
"formatRelativeTime": [Function],
|
||||
"formatTime": [Function],
|
||||
"formatTimeToParts": [Function],
|
||||
"formats": Object {},
|
||||
"formatters": Object {
|
||||
"formats": {},
|
||||
"formatters": {
|
||||
"getDateTimeFormat": [Function],
|
||||
"getDisplayNames": [Function],
|
||||
"getListFormat": [Function],
|
||||
@@ -255,7 +255,7 @@ exports[`TextEditor Image Gallery component component snapshot: not loaded, show
|
||||
"getRelativeTimeFormat": [Function],
|
||||
},
|
||||
"locale": "en",
|
||||
"messages": Object {},
|
||||
"messages": {},
|
||||
"onError": [Function],
|
||||
"onWarn": [Function],
|
||||
"textComponent": Symbol(react.fragment),
|
||||
@@ -266,20 +266,20 @@ exports[`TextEditor Image Gallery component component snapshot: not loaded, show
|
||||
>
|
||||
<Gallery
|
||||
displayList={
|
||||
Array [
|
||||
Object {
|
||||
[
|
||||
{
|
||||
"id": 1,
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"id": 2,
|
||||
},
|
||||
Object {
|
||||
{
|
||||
"id": 3,
|
||||
},
|
||||
]
|
||||
}
|
||||
emptyGalleryLabel={
|
||||
Object {
|
||||
{
|
||||
"defaultMessage": "Empty Gallery",
|
||||
"id": "emptyGalleryMsg",
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ exports[`GalleryCard component snapshot with duration badge 1`] = `
|
||||
<div
|
||||
className="position-relative"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "100px",
|
||||
"width": "200px",
|
||||
}
|
||||
@@ -27,7 +27,7 @@ exports[`GalleryCard component snapshot with duration badge 1`] = `
|
||||
<Image
|
||||
src="props.img.externalUrl"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"border": "none",
|
||||
"height": "100px",
|
||||
"width": "200px",
|
||||
@@ -36,7 +36,7 @@ exports[`GalleryCard component snapshot with duration badge 1`] = `
|
||||
/>
|
||||
<Badge
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"backgroundColor": "black",
|
||||
"bottom": "6px",
|
||||
"position": "absolute",
|
||||
@@ -51,7 +51,7 @@ exports[`GalleryCard component snapshot with duration badge 1`] = `
|
||||
<div
|
||||
className="card-text px-3 py-2"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"marginTop": "10px",
|
||||
}
|
||||
}
|
||||
@@ -64,7 +64,7 @@ exports[`GalleryCard component snapshot with duration badge 1`] = `
|
||||
<p
|
||||
className="text-gray-500"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"fontSize": "11px",
|
||||
}
|
||||
}
|
||||
@@ -74,7 +74,7 @@ exports[`GalleryCard component snapshot with duration badge 1`] = `
|
||||
description="File date-added string"
|
||||
id="authoring.selectionmodal.addedDate.label"
|
||||
values={
|
||||
Object {
|
||||
{
|
||||
"date": <FormattedDate
|
||||
value={12345}
|
||||
/>,
|
||||
@@ -108,7 +108,7 @@ exports[`GalleryCard component snapshot with duration transcripts 1`] = `
|
||||
<div
|
||||
className="position-relative"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "100px",
|
||||
"width": "200px",
|
||||
}
|
||||
@@ -117,7 +117,7 @@ exports[`GalleryCard component snapshot with duration transcripts 1`] = `
|
||||
<Image
|
||||
src="props.img.externalUrl"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"border": "none",
|
||||
"height": "100px",
|
||||
"width": "200px",
|
||||
@@ -128,7 +128,7 @@ exports[`GalleryCard component snapshot with duration transcripts 1`] = `
|
||||
<div
|
||||
className="card-text px-3 py-2"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"marginTop": "10px",
|
||||
}
|
||||
}
|
||||
@@ -140,14 +140,14 @@ exports[`GalleryCard component snapshot with duration transcripts 1`] = `
|
||||
</h3>
|
||||
<div
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"margin": "0 0 5px 0",
|
||||
}
|
||||
}
|
||||
>
|
||||
<injectIntl(ShimmedIntlComponent)
|
||||
transcripts={
|
||||
Array [
|
||||
[
|
||||
"es",
|
||||
]
|
||||
}
|
||||
@@ -156,7 +156,7 @@ exports[`GalleryCard component snapshot with duration transcripts 1`] = `
|
||||
<p
|
||||
className="text-gray-500"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"fontSize": "11px",
|
||||
}
|
||||
}
|
||||
@@ -166,7 +166,7 @@ exports[`GalleryCard component snapshot with duration transcripts 1`] = `
|
||||
description="File date-added string"
|
||||
id="authoring.selectionmodal.addedDate.label"
|
||||
values={
|
||||
Object {
|
||||
{
|
||||
"date": <FormattedDate
|
||||
value={12345}
|
||||
/>,
|
||||
@@ -200,7 +200,7 @@ exports[`GalleryCard component snapshot with status badge 1`] = `
|
||||
<div
|
||||
className="position-relative"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "100px",
|
||||
"width": "200px",
|
||||
}
|
||||
@@ -209,7 +209,7 @@ exports[`GalleryCard component snapshot with status badge 1`] = `
|
||||
<Image
|
||||
src="props.img.externalUrl"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"border": "none",
|
||||
"height": "100px",
|
||||
"width": "200px",
|
||||
@@ -220,7 +220,7 @@ exports[`GalleryCard component snapshot with status badge 1`] = `
|
||||
<div
|
||||
className="card-text px-3 py-2"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"marginTop": "10px",
|
||||
}
|
||||
}
|
||||
@@ -233,7 +233,7 @@ exports[`GalleryCard component snapshot with status badge 1`] = `
|
||||
<p
|
||||
className="text-gray-500"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"fontSize": "11px",
|
||||
}
|
||||
}
|
||||
@@ -243,7 +243,7 @@ exports[`GalleryCard component snapshot with status badge 1`] = `
|
||||
description="File date-added string"
|
||||
id="authoring.selectionmodal.addedDate.label"
|
||||
values={
|
||||
Object {
|
||||
{
|
||||
"date": <FormattedDate
|
||||
value={12345}
|
||||
/>,
|
||||
@@ -277,7 +277,7 @@ exports[`GalleryCard component snapshot with thumbnail fallback and load error 1
|
||||
<div
|
||||
className="position-relative"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "100px",
|
||||
"width": "200px",
|
||||
}
|
||||
@@ -287,7 +287,7 @@ exports[`GalleryCard component snapshot with thumbnail fallback and load error 1
|
||||
onError={[Function]}
|
||||
src="props.img.externalUrl"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"border": "none",
|
||||
"height": "100px",
|
||||
"width": "200px",
|
||||
@@ -298,7 +298,7 @@ exports[`GalleryCard component snapshot with thumbnail fallback and load error 1
|
||||
<div
|
||||
className="card-text px-3 py-2"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"marginTop": "10px",
|
||||
}
|
||||
}
|
||||
@@ -311,7 +311,7 @@ exports[`GalleryCard component snapshot with thumbnail fallback and load error 1
|
||||
<p
|
||||
className="text-gray-500"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"fontSize": "11px",
|
||||
}
|
||||
}
|
||||
@@ -321,7 +321,7 @@ exports[`GalleryCard component snapshot with thumbnail fallback and load error 1
|
||||
description="File date-added string"
|
||||
id="authoring.selectionmodal.addedDate.label"
|
||||
values={
|
||||
Object {
|
||||
{
|
||||
"date": <FormattedDate
|
||||
value={12345}
|
||||
/>,
|
||||
@@ -355,7 +355,7 @@ exports[`GalleryCard component snapshot with thumbnail fallback and no error 1`]
|
||||
<div
|
||||
className="position-relative"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "100px",
|
||||
"width": "200px",
|
||||
}
|
||||
@@ -365,7 +365,7 @@ exports[`GalleryCard component snapshot with thumbnail fallback and no error 1`]
|
||||
onError={[Function]}
|
||||
src="props.img.externalUrl"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"border": "none",
|
||||
"height": "100px",
|
||||
"width": "200px",
|
||||
@@ -376,7 +376,7 @@ exports[`GalleryCard component snapshot with thumbnail fallback and no error 1`]
|
||||
<div
|
||||
className="card-text px-3 py-2"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"marginTop": "10px",
|
||||
}
|
||||
}
|
||||
@@ -389,7 +389,7 @@ exports[`GalleryCard component snapshot with thumbnail fallback and no error 1`]
|
||||
<p
|
||||
className="text-gray-500"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"fontSize": "11px",
|
||||
}
|
||||
}
|
||||
@@ -399,7 +399,7 @@ exports[`GalleryCard component snapshot with thumbnail fallback and no error 1`]
|
||||
description="File date-added string"
|
||||
id="authoring.selectionmodal.addedDate.label"
|
||||
values={
|
||||
Object {
|
||||
{
|
||||
"date": <FormattedDate
|
||||
value={12345}
|
||||
/>,
|
||||
@@ -433,7 +433,7 @@ exports[`GalleryCard component snapshot: dateAdded=12345 1`] = `
|
||||
<div
|
||||
className="position-relative"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"height": "100px",
|
||||
"width": "200px",
|
||||
}
|
||||
@@ -442,7 +442,7 @@ exports[`GalleryCard component snapshot: dateAdded=12345 1`] = `
|
||||
<Image
|
||||
src="props.img.externalUrl"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"border": "none",
|
||||
"height": "100px",
|
||||
"width": "200px",
|
||||
@@ -453,7 +453,7 @@ exports[`GalleryCard component snapshot: dateAdded=12345 1`] = `
|
||||
<div
|
||||
className="card-text px-3 py-2"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"marginTop": "10px",
|
||||
}
|
||||
}
|
||||
@@ -466,7 +466,7 @@ exports[`GalleryCard component snapshot: dateAdded=12345 1`] = `
|
||||
<p
|
||||
className="text-gray-500"
|
||||
style={
|
||||
Object {
|
||||
{
|
||||
"fontSize": "11px",
|
||||
}
|
||||
}
|
||||
@@ -476,7 +476,7 @@ exports[`GalleryCard component snapshot: dateAdded=12345 1`] = `
|
||||
description="File date-added string"
|
||||
id="authoring.selectionmodal.addedDate.label"
|
||||
values={
|
||||
Object {
|
||||
{
|
||||
"date": <FormattedDate
|
||||
value={12345}
|
||||
/>,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
exports[`SourceCodeModal renders as expected with default behavior 1`] = `
|
||||
<BaseModal
|
||||
bodyStyle={
|
||||
Object {
|
||||
{
|
||||
"maxHeight": NaN,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
exports[`TinyMceWidget snapshots ImageUploadModal is not rendered 1`] = `
|
||||
<Provider
|
||||
store={
|
||||
Object {
|
||||
{
|
||||
"dispatch": [Function],
|
||||
"getState": [Function],
|
||||
"replaceReducer": [Function],
|
||||
@@ -15,8 +15,8 @@ exports[`TinyMceWidget snapshots ImageUploadModal is not rendered 1`] = `
|
||||
<SourceCodeModal
|
||||
close={[MockFunction modal.closeModal]}
|
||||
editorRef={
|
||||
Object {
|
||||
"current": Object {
|
||||
{
|
||||
"current": {
|
||||
"value": "something",
|
||||
},
|
||||
}
|
||||
@@ -26,19 +26,19 @@ exports[`TinyMceWidget snapshots ImageUploadModal is not rendered 1`] = `
|
||||
<Editor
|
||||
disabled={false}
|
||||
editorConfig={
|
||||
Object {
|
||||
{
|
||||
"clearSelection": [MockFunction hooks.selectedImage.clearSelection],
|
||||
"content": undefined,
|
||||
"editorContentHtml": undefined,
|
||||
"editorRef": Object {
|
||||
"current": Object {
|
||||
"editorRef": {
|
||||
"current": {
|
||||
"value": "something",
|
||||
},
|
||||
},
|
||||
"editorType": "text",
|
||||
"images": Object {
|
||||
"current": Array [
|
||||
Object {
|
||||
"images": {
|
||||
"current": [
|
||||
{
|
||||
"externalUrl": "/assets/sOmEaSsET",
|
||||
},
|
||||
],
|
||||
@@ -66,7 +66,7 @@ exports[`TinyMceWidget snapshots ImageUploadModal is not rendered 1`] = `
|
||||
exports[`TinyMceWidget snapshots SourcecodeModal is not rendered 1`] = `
|
||||
<Provider
|
||||
store={
|
||||
Object {
|
||||
{
|
||||
"dispatch": [Function],
|
||||
"getState": [Function],
|
||||
"replaceReducer": [Function],
|
||||
@@ -79,17 +79,17 @@ exports[`TinyMceWidget snapshots SourcecodeModal is not rendered 1`] = `
|
||||
clearSelection={[MockFunction hooks.selectedImage.clearSelection]}
|
||||
close={[MockFunction modal.closeModal]}
|
||||
editorRef={
|
||||
Object {
|
||||
"current": Object {
|
||||
{
|
||||
"current": {
|
||||
"value": "something",
|
||||
},
|
||||
}
|
||||
}
|
||||
editorType="problem"
|
||||
images={
|
||||
Object {
|
||||
"current": Array [
|
||||
Object {
|
||||
{
|
||||
"current": [
|
||||
{
|
||||
"externalUrl": "/assets/sOmEaSsET",
|
||||
},
|
||||
],
|
||||
@@ -103,19 +103,19 @@ exports[`TinyMceWidget snapshots SourcecodeModal is not rendered 1`] = `
|
||||
<Editor
|
||||
disabled={false}
|
||||
editorConfig={
|
||||
Object {
|
||||
{
|
||||
"clearSelection": [MockFunction hooks.selectedImage.clearSelection],
|
||||
"content": undefined,
|
||||
"editorContentHtml": undefined,
|
||||
"editorRef": Object {
|
||||
"current": Object {
|
||||
"editorRef": {
|
||||
"current": {
|
||||
"value": "something",
|
||||
},
|
||||
},
|
||||
"editorType": "problem",
|
||||
"images": Object {
|
||||
"current": Array [
|
||||
Object {
|
||||
"images": {
|
||||
"current": [
|
||||
{
|
||||
"externalUrl": "/assets/sOmEaSsET",
|
||||
},
|
||||
],
|
||||
@@ -143,7 +143,7 @@ exports[`TinyMceWidget snapshots SourcecodeModal is not rendered 1`] = `
|
||||
exports[`TinyMceWidget snapshots renders as expected with default behavior 1`] = `
|
||||
<Provider
|
||||
store={
|
||||
Object {
|
||||
{
|
||||
"dispatch": [Function],
|
||||
"getState": [Function],
|
||||
"replaceReducer": [Function],
|
||||
@@ -156,17 +156,17 @@ exports[`TinyMceWidget snapshots renders as expected with default behavior 1`] =
|
||||
clearSelection={[MockFunction hooks.selectedImage.clearSelection]}
|
||||
close={[MockFunction modal.closeModal]}
|
||||
editorRef={
|
||||
Object {
|
||||
"current": Object {
|
||||
{
|
||||
"current": {
|
||||
"value": "something",
|
||||
},
|
||||
}
|
||||
}
|
||||
editorType="text"
|
||||
images={
|
||||
Object {
|
||||
"current": Array [
|
||||
Object {
|
||||
{
|
||||
"current": [
|
||||
{
|
||||
"externalUrl": "/assets/sOmEaSsET",
|
||||
},
|
||||
],
|
||||
@@ -180,8 +180,8 @@ exports[`TinyMceWidget snapshots renders as expected with default behavior 1`] =
|
||||
<SourceCodeModal
|
||||
close={[MockFunction modal.closeModal]}
|
||||
editorRef={
|
||||
Object {
|
||||
"current": Object {
|
||||
{
|
||||
"current": {
|
||||
"value": "something",
|
||||
},
|
||||
}
|
||||
@@ -191,19 +191,19 @@ exports[`TinyMceWidget snapshots renders as expected with default behavior 1`] =
|
||||
<Editor
|
||||
disabled={false}
|
||||
editorConfig={
|
||||
Object {
|
||||
{
|
||||
"clearSelection": [MockFunction hooks.selectedImage.clearSelection],
|
||||
"content": undefined,
|
||||
"editorContentHtml": undefined,
|
||||
"editorRef": Object {
|
||||
"current": Object {
|
||||
"editorRef": {
|
||||
"current": {
|
||||
"value": "something",
|
||||
},
|
||||
},
|
||||
"editorType": "text",
|
||||
"images": Object {
|
||||
"current": Array [
|
||||
Object {
|
||||
"images": {
|
||||
"current": [
|
||||
{
|
||||
"externalUrl": "/assets/sOmEaSsET",
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user