* feat: add language selection chore: update tests so we have less error message test: update test * test: update tests * chore: remove duplicate translation * chore: lint for console * chore: remove comments * chore: make sure the affect url frame refresh after the language selection change * chore: add whole_course_translation and language to courseware meta (#1305) * feat: Add feedback widget UI mock Add unit tests Fix snapshot Clean Sequence component logEvent calls Clean unit test Put feedback widget behind whole course translation flag Fix useFeedbackWidget test * chore: add src and dest translation * feat: first iteration of plugin translation chore: update plugin instruction * feat: Connect FeedbackWidget with backend services (#1325) Connect FeedbackWidget with backend services Move feedback widget to unit translation plugin * feat: Add authentication to WCT feedback endpoints (#1329) * chore: add fetch config and move feedback widget for the plugin chore: rewrite and test the api request chore: rebase chore: update translation feedback chore: test chore: add more tests * chore: rebase * chore: update requested change * chore: update package * chore: upgrade frontend-lib-special-exams and frontend-lib-learning-assistant * chore: update tests * chore: remove unneeded package * chore: update example config * chore: add source-map-loader * fix: feedback widget render error after submit feedback (#1335) * fix: feedback widget render error after submit feedback * fix: widget logic --------- Co-authored-by: Rodrigo Martin <rodrigom_94@hotmail.com>
64 lines
1.7 KiB
JavaScript
64 lines
1.7 KiB
JavaScript
import { Factory } from 'rosie'; // eslint-disable-line import/no-extraneous-dependencies
|
|
|
|
import courseMetadataBase from '../../../shared/data/__factories__/courseMetadataBase.factory';
|
|
|
|
Factory.define('courseMetadata')
|
|
.extend(courseMetadataBase)
|
|
.option('host', '')
|
|
.attrs({
|
|
access_expiration: {
|
|
expiration_date: '2032-02-22T05:00:00Z',
|
|
},
|
|
content_type_gating_enabled: false,
|
|
course_expired_message: null,
|
|
course_goals: {
|
|
goal_options: [],
|
|
selected_goal: {
|
|
days_per_week: 1,
|
|
subscribed_to_reminders: true,
|
|
},
|
|
},
|
|
end: null,
|
|
enrollment_start: null,
|
|
enrollment_end: null,
|
|
name: 'Demonstration Course',
|
|
offer_html: null,
|
|
short_description: null,
|
|
start: '2013-02-05T05:00:00Z',
|
|
start_display: 'Feb. 5, 2013',
|
|
start_type: 'timestamp',
|
|
pacing: 'instructor',
|
|
enrollment: {
|
|
mode: null,
|
|
is_active: null,
|
|
},
|
|
show_calculator: false,
|
|
license: 'all-rights-reserved',
|
|
notes: {
|
|
visible: true,
|
|
enabled: false,
|
|
},
|
|
marketing_url: null,
|
|
language: 'en',
|
|
whole_course_translation_enabled: false,
|
|
celebrations: null,
|
|
enroll_alert: null,
|
|
course_exit_page_is_active: true,
|
|
user_has_passing_grade: false,
|
|
certificate_data: null,
|
|
entrance_exam_data: {
|
|
entrance_exam_current_score: 0.0,
|
|
entrance_exam_enabled: false,
|
|
entrance_exam_id: '',
|
|
entrance_exam_minimum_score_pct: 0.65,
|
|
entrance_exam_passed: true,
|
|
},
|
|
verify_identity_url: null,
|
|
verification_status: 'none',
|
|
linkedin_add_to_profile_url: null,
|
|
related_programs: null,
|
|
user_needs_integrity_signature: false,
|
|
recommendations: null,
|
|
learning_assistant_enabled: null,
|
|
});
|