diff --git a/src/components/EditCoursePage/EditCourseForm.jsx b/src/components/EditCoursePage/EditCourseForm.jsx
index 85e3c944d..12b94d2d8 100644
--- a/src/components/EditCoursePage/EditCourseForm.jsx
+++ b/src/components/EditCoursePage/EditCourseForm.jsx
@@ -268,7 +268,7 @@ export class BaseEditCourseForm extends React.Component {
const {
data: {
- results: allResults,
+ results: allResults = [],
},
} = collaboratorOptions;
diff --git a/src/components/EditCoursePage/EditCourseForm.test.jsx b/src/components/EditCoursePage/EditCourseForm.test.jsx
index 9077b5b97..840da6048 100644
--- a/src/components/EditCoursePage/EditCourseForm.test.jsx
+++ b/src/components/EditCoursePage/EditCourseForm.test.jsx
@@ -474,4 +474,24 @@ describe('BaseEditCourseForm', () => {
const fields = component.find({ name: 'imageSrc' });
expect(fields).toHaveLength(1);
});
+
+ it('renders html correctly while fetching collaborator options', () => {
+ const component = shallow(
+
+ Note: Course editors cannot edit the URL slug. Please reach out to your project coordinator or edX support to edit this field.
+
+
+ This field is optional. If left blank, edX will automatically create a URL slug based on the course title.
+
+ If you find that a given URL slug is already in use, we recommend adding your school or institution name to the slug to ensure uniqueness.
+
+ This URL slug can be changed, and learners who visit an older URL will be redirected to the current URL.
+
+
+ What is a URL slug?
+
+
+ In the following example URLs:
+
+
+ www.edx.org/course/math-101, the URL slug is “math-101”
+
+
+ The Product source is a key that identifies where the course originates. +
++ + Example: + +
++ If the course originates from the edX platform, the Product source is edX. +
++ The Course enrollment track determines what enrollment tracks are eligible for the course runs. +
++ + Example: + +
++ The Verified and Audit selection will allow course runs to either be Verified and Audit or Audit only. +
+ + } + id="type.label" + optional={false} + text="Course enrollment track" + /> + } + name="type" + options={ + [ + { + "label": "Select enrollment track", + "value": "", + }, + { + "label": "Credit", + "value": "9521aa7d-801b-4a67-92c3-716ea30f5086", + }, + { + "label": "Masters Only", + "value": "7b41992e-f268-4331-8ba9-72acb0880454", + }, + { + "label": "Verified and Audit", + "value": "8a8f30e1-23ce-4ed3-a361-1325c656b67b", + }, + { + "label": "Professional Only", + "value": "fdde7d04-7ce0-4ff7-ac90-7f518e90ac1e", + }, + { + "label": "Audit Only", + "value": "03e09c15-4127-4031-bc02-e20fcbdf09f0", + }, + ] + } + /> ++ Course teams are responsible for securing any necessary permissions for use of third-party logos. +
++ To elaborate on the support, please include additional information in the “About this course” section. Please avoid including statements that the course is jointly offered or that the 3rd party is collaborating or partnering with edX. +
+ + } + id="collaborators.label" + optional={true} + text="Collaborators" + /> ++ An eye-catching, colorful image that captures the essence of your course. +
++ + Learn more. + +
+ + } + id="image.label" + optional={false} + text="Image" + /> + } + maxImageSizeKilo={1000} + name="imageSrc" + requiredHeight={675} + requiredWidth={1134} + /> ++ The subject of the course. +
++ You can select up to two subjects in addition to the primary subject. Only the primary subject appears on the About page. +
++ + Learn more. + +
+ + } + id="subject1.label" + optional={false} + text="Primary subject" + /> + } + name="subjectPrimary" + options={ + [ + { + "label": "--", + "value": "", + }, + { + "label": "Business", + "value": "business", + }, + { + "label": "Chemistry", + "value": "chemistry", + }, + { + "label": "English", + "value": "english", + }, + { + "label": "Security", + "value": "security", + }, + ] + } + required={false} + /> +