-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
80b4a1e
commit 7a69640
Showing
8 changed files
with
206 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,7 @@ describe('BaseEditCourseForm', () => { | |
skill_names: [], | ||
organization_logo_override: 'http://image.src.small', | ||
organization_short_code_override: 'test short code', | ||
watchers: ['[email protected]'], | ||
location_restriction: { | ||
restriction_type: 'allowlist', | ||
countries: ['AF', 'AX'], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ describe('EditCoursePage', () => { | |
const defaultPrice = '77'; | ||
const defaultEnd = '2019-08-14T00:00:00Z'; | ||
const defaultUpgradeDeadlineOverride = '2019-09-14T00:00:00Z'; | ||
const watchers = ['[email protected]']; | ||
|
||
const courseInfo = { | ||
data: { | ||
|
@@ -161,6 +162,8 @@ describe('EditCoursePage', () => { | |
skill_names: [], | ||
organization_logo_override_url: 'http://image.src.small', | ||
organization_short_code_override: 'test short code', | ||
watchers, | ||
watchers_list: watchers?.length ? watchers.map(w => ({ label: w, value: w })) : null, | ||
location_restriction: { | ||
restriction_type: 'allowlist', | ||
countries: [ | ||
|
@@ -384,6 +387,8 @@ describe('EditCoursePage', () => { | |
}, | ||
organization_logo_override_url: 'http://image.src.small', | ||
organization_short_code_override: 'test short code', | ||
watchers, | ||
watchers_list: watchers?.length ? watchers.map(w => ({ label: w, value: w })) : null, | ||
outcome: '<p>Stuff</p>', | ||
prerequisites_raw: '', | ||
prices: { | ||
|
@@ -426,6 +431,7 @@ describe('EditCoursePage', () => { | |
}, | ||
organization_logo_override: 'http://image.src.small', | ||
organization_short_code_override: 'test short code', | ||
watchers, | ||
outcome: '<p>Stuff</p>', | ||
prerequisites_raw: '', | ||
prices: { | ||
|
@@ -967,6 +973,7 @@ describe('EditCoursePage', () => { | |
}, | ||
organization_logo_override: 'http://image.src.small', | ||
organization_short_code_override: 'test short code', | ||
watchers, | ||
outcome: '<p>Stuff</p>', | ||
prerequisites_raw: '', | ||
prices: { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1700,6 +1700,9 @@ exports[`BaseEditCourseForm override slug format when IS_NEW_SLUG_FORMAT_ENABLED | |
"type": "8a8f30e1-23ce-4ed3-a361-1325c656b67b", | ||
"uuid": "11111111-1111-1111-1111-111111111111", | ||
"videoSrc": "https://www.video.src/watch?v=fdsafd", | ||
"watchers": Array [ | ||
"[email protected]", | ||
], | ||
} | ||
} | ||
editable={false} | ||
|
@@ -3521,6 +3524,9 @@ exports[`BaseEditCourseForm renders correctly when submitting for review 1`] = ` | |
"type": "8a8f30e1-23ce-4ed3-a361-1325c656b67b", | ||
"uuid": "11111111-1111-1111-1111-111111111111", | ||
"videoSrc": "https://www.video.src/watch?v=fdsafd", | ||
"watchers": Array [ | ||
"[email protected]", | ||
], | ||
} | ||
} | ||
editable={false} | ||
|
@@ -5342,6 +5348,9 @@ exports[`BaseEditCourseForm renders html correctly while submitting 1`] = ` | |
"type": "8a8f30e1-23ce-4ed3-a361-1325c656b67b", | ||
"uuid": "11111111-1111-1111-1111-111111111111", | ||
"videoSrc": "https://www.video.src/watch?v=fdsafd", | ||
"watchers": Array [ | ||
"[email protected]", | ||
], | ||
} | ||
} | ||
editable={false} | ||
|
@@ -5396,6 +5405,9 @@ exports[`BaseEditCourseForm renders html correctly while submitting 1`] = ` | |
"type": "8a8f30e1-23ce-4ed3-a361-1325c656b67b", | ||
"uuid": "11111111-1111-1111-1111-111111111111", | ||
"videoSrc": "https://www.video.src/watch?v=fdsafd", | ||
"watchers": Array [ | ||
"[email protected]", | ||
], | ||
} | ||
} | ||
isSubmittingForReview={false} | ||
|
@@ -6706,6 +6718,29 @@ exports[`BaseEditCourseForm renders html correctly with administrator being true | |
requiredHeight={110} | ||
requiredWidth={110} | ||
/> | ||
<Field | ||
component={[Function]} | ||
createOptionValidator={[Function]} | ||
disabled={true} | ||
isCreatable={true} | ||
isMulti={true} | ||
label={ | ||
<FieldLabel | ||
className="" | ||
extraText="" | ||
helpText={ | ||
<p> | ||
A comma-separated list of email addresses that will receive notifications when the course run of the course is published or reviewed. | ||
</p> | ||
} | ||
id="watchers.label" | ||
optional={true} | ||
text="Watchers" | ||
/> | ||
} | ||
name="watchers_list" | ||
optional={true} | ||
/> | ||
<FieldLabel | ||
className="mb-2" | ||
extraText="" | ||
|
@@ -7507,6 +7542,9 @@ exports[`BaseEditCourseForm renders html correctly with administrator being true | |
"type": "8a8f30e1-23ce-4ed3-a361-1325c656b67b", | ||
"uuid": "11111111-1111-1111-1111-111111111111", | ||
"videoSrc": "https://www.video.src/watch?v=fdsafd", | ||
"watchers": Array [ | ||
"[email protected]", | ||
], | ||
} | ||
} | ||
editable={false} | ||
|
@@ -7561,6 +7599,9 @@ exports[`BaseEditCourseForm renders html correctly with administrator being true | |
"type": "8a8f30e1-23ce-4ed3-a361-1325c656b67b", | ||
"uuid": "11111111-1111-1111-1111-111111111111", | ||
"videoSrc": "https://www.video.src/watch?v=fdsafd", | ||
"watchers": Array [ | ||
"[email protected]", | ||
], | ||
} | ||
} | ||
isSubmittingForReview={false} | ||
|
@@ -9366,6 +9407,9 @@ exports[`BaseEditCourseForm renders html correctly with all data present 1`] = ` | |
"type": "8a8f30e1-23ce-4ed3-a361-1325c656b67b", | ||
"uuid": "11111111-1111-1111-1111-111111111111", | ||
"videoSrc": "https://www.video.src/watch?v=fdsafd", | ||
"watchers": Array [ | ||
"[email protected]", | ||
], | ||
} | ||
} | ||
editable={false} | ||
|
@@ -9420,6 +9464,9 @@ exports[`BaseEditCourseForm renders html correctly with all data present 1`] = ` | |
"type": "8a8f30e1-23ce-4ed3-a361-1325c656b67b", | ||
"uuid": "11111111-1111-1111-1111-111111111111", | ||
"videoSrc": "https://www.video.src/watch?v=fdsafd", | ||
"watchers": Array [ | ||
"[email protected]", | ||
], | ||
} | ||
} | ||
isSubmittingForReview={false} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -169,6 +169,8 @@ exports[`EditCoursePage renders html correctly 1`] = ` | |
"type": undefined, | ||
"url_slug": undefined, | ||
"videoSrc": undefined, | ||
"watchers": undefined, | ||
"watchers_list": null, | ||
} | ||
} | ||
onSubmit={[Function]} | ||
|
@@ -471,6 +473,15 @@ exports[`EditCoursePage renders page correctly with courseInfo 1`] = ` | |
"image": null, | ||
"src": "https://www.video.information/watch?v=cVsQLlk-T0s", | ||
}, | ||
"watchers": Array [ | ||
"[email protected]", | ||
], | ||
"watchers_list": Array [ | ||
Object { | ||
"label": "[email protected]", | ||
"value": "[email protected]", | ||
}, | ||
], | ||
}, | ||
"error": null, | ||
"isFetching": false, | ||
|
@@ -693,6 +704,15 @@ exports[`EditCoursePage renders page correctly with courseInfo 1`] = ` | |
"type": "8a8f30e1-23ce-4ed3-a361-1325c656b67b", | ||
"url_slug": undefined, | ||
"videoSrc": "https://www.video.information/watch?v=cVsQLlk-T0s", | ||
"watchers": Array [ | ||
"[email protected]", | ||
], | ||
"watchers_list": Array [ | ||
Object { | ||
"label": "[email protected]", | ||
"value": "[email protected]", | ||
}, | ||
], | ||
} | ||
} | ||
number="Test101x" | ||
|
@@ -975,6 +995,15 @@ exports[`EditCoursePage renders page correctly with courseInfo and courseOptions | |
"image": null, | ||
"src": "https://www.video.information/watch?v=cVsQLlk-T0s", | ||
}, | ||
"watchers": Array [ | ||
"[email protected]", | ||
], | ||
"watchers_list": Array [ | ||
Object { | ||
"label": "[email protected]", | ||
"value": "[email protected]", | ||
}, | ||
], | ||
}, | ||
"error": null, | ||
"isFetching": false, | ||
|
@@ -1570,6 +1599,15 @@ exports[`EditCoursePage renders page correctly with courseInfo and courseOptions | |
"type": "8a8f30e1-23ce-4ed3-a361-1325c656b67b", | ||
"url_slug": undefined, | ||
"videoSrc": "https://www.video.information/watch?v=cVsQLlk-T0s", | ||
"watchers": Array [ | ||
"[email protected]", | ||
], | ||
"watchers_list": Array [ | ||
Object { | ||
"label": "[email protected]", | ||
"value": "[email protected]", | ||
}, | ||
], | ||
} | ||
} | ||
number="Test101x" | ||
|
@@ -1767,6 +1805,8 @@ exports[`EditCoursePage renders page correctly with courseInfo error 1`] = ` | |
"type": undefined, | ||
"url_slug": undefined, | ||
"videoSrc": undefined, | ||
"watchers": undefined, | ||
"watchers_list": null, | ||
} | ||
} | ||
onSubmit={[Function]} | ||
|
@@ -2070,6 +2110,15 @@ exports[`EditCoursePage renders page correctly with courseInfo, courseOptions, a | |
"image": null, | ||
"src": "https://www.video.information/watch?v=cVsQLlk-T0s", | ||
}, | ||
"watchers": Array [ | ||
"[email protected]", | ||
], | ||
"watchers_list": Array [ | ||
Object { | ||
"label": "[email protected]", | ||
"value": "[email protected]", | ||
}, | ||
], | ||
}, | ||
"error": null, | ||
"isFetching": false, | ||
|
@@ -2733,6 +2782,15 @@ exports[`EditCoursePage renders page correctly with courseInfo, courseOptions, a | |
"type": "8a8f30e1-23ce-4ed3-a361-1325c656b67b", | ||
"url_slug": undefined, | ||
"videoSrc": "https://www.video.information/watch?v=cVsQLlk-T0s", | ||
"watchers": Array [ | ||
"[email protected]", | ||
], | ||
"watchers_list": Array [ | ||
Object { | ||
"label": "[email protected]", | ||
"value": "[email protected]", | ||
}, | ||
], | ||
} | ||
} | ||
number="Test101x" | ||
|
@@ -2946,6 +3004,8 @@ exports[`EditCoursePage renders page correctly with courseInfo, courseOptions, a | |
"type": undefined, | ||
"url_slug": undefined, | ||
"videoSrc": undefined, | ||
"watchers": undefined, | ||
"watchers_list": null, | ||
} | ||
} | ||
onSubmit={[Function]} | ||
|
@@ -3537,6 +3597,8 @@ exports[`EditCoursePage renders page correctly with courseOptions 1`] = ` | |
"type": undefined, | ||
"url_slug": undefined, | ||
"videoSrc": undefined, | ||
"watchers": undefined, | ||
"watchers_list": null, | ||
} | ||
} | ||
onSubmit={[Function]} | ||
|
@@ -3734,6 +3796,8 @@ exports[`EditCoursePage renders page correctly with courseOptions error 1`] = ` | |
"type": undefined, | ||
"url_slug": undefined, | ||
"videoSrc": undefined, | ||
"watchers": undefined, | ||
"watchers_list": null, | ||
} | ||
} | ||
onSubmit={[Function]} | ||
|
@@ -4016,6 +4080,8 @@ exports[`EditCoursePage renders page correctly with courseRunOptions 1`] = ` | |
"type": undefined, | ||
"url_slug": undefined, | ||
"videoSrc": undefined, | ||
"watchers": undefined, | ||
"watchers_list": null, | ||
} | ||
} | ||
onSubmit={[Function]} | ||
|
@@ -4213,6 +4279,8 @@ exports[`EditCoursePage renders page correctly with courseRunOptions error 1`] = | |
"type": undefined, | ||
"url_slug": undefined, | ||
"videoSrc": undefined, | ||
"watchers": undefined, | ||
"watchers_list": null, | ||
} | ||
} | ||
onSubmit={[Function]} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.