Bok Choy tests for the split payment and verification flow
Adds mode creation endpoint to course_modes app and ability to bypass media device access prompt when proceeding through verification flow in a testing environment.
This commit is contained in:
@@ -70,6 +70,12 @@ var edx = edx || {};
|
||||
platformName: el.data('platform-name'),
|
||||
requirements: el.data('requirements')
|
||||
},
|
||||
'face-photo-step': {
|
||||
platformName: el.data('platform-name')
|
||||
},
|
||||
'id-photo-step': {
|
||||
platformName: el.data('platform-name')
|
||||
},
|
||||
'review-photos-step': {
|
||||
fullName: el.data('full-name'),
|
||||
platformName: el.data('platform-name')
|
||||
@@ -79,12 +85,6 @@ var edx = edx || {};
|
||||
courseStartDate: el.data('course-start-date'),
|
||||
coursewareUrl: el.data('courseware-url'),
|
||||
platformName: el.data('platform-name')
|
||||
},
|
||||
'face-photo-step': {
|
||||
platformName: el.data('platform-name')
|
||||
},
|
||||
'id-photo-step': {
|
||||
platformName: el.data('platform-name')
|
||||
}
|
||||
}
|
||||
}).render();
|
||||
|
||||
@@ -25,7 +25,14 @@
|
||||
|
||||
// Start the capture
|
||||
this.getUserMediaFunc()(
|
||||
{ video: true },
|
||||
{
|
||||
video: true,
|
||||
|
||||
// Specify the `fake` constraint if we detect we are running in a test
|
||||
// environment. In Chrome, this will do nothing, but in Firefox, it will
|
||||
// instruct the browser to use a fake video device.
|
||||
fake: window.location.hostname === 'localhost'
|
||||
},
|
||||
_.bind( this.getUserMediaCallback, this ),
|
||||
_.bind( this.handleVideoFailure, this )
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user