MST-542 Roll out Accounts MFE IDV workflow (#25613)
* MST-542 remove the IDV redirect to Account MFE waffle flag to permanently redirect learners to new IDV workflow. This completes the rollout process on edx-platform
This commit is contained in:
@@ -19,6 +19,7 @@ from lms.djangoapps.certificates.tests.factories import (
|
||||
from lms.djangoapps.courseware.access_utils import ACCESS_DENIED, ACCESS_GRANTED
|
||||
from lms.djangoapps.courseware.tabs import ExternalLinkCourseTab
|
||||
from lms.djangoapps.courseware.tests.helpers import MasqueradeMixin
|
||||
from lms.djangoapps.verify_student.services import IDVerificationService
|
||||
from common.djangoapps.student.models import CourseEnrollment, CourseEnrollmentCelebration
|
||||
from common.djangoapps.student.tests.factories import CourseEnrollmentCelebrationFactory, UserFactory
|
||||
from xmodule.modulestore.django import modulestore
|
||||
@@ -133,7 +134,9 @@ class CourseApiTestViews(BaseCoursewareTests):
|
||||
assert response.data['linkedin_add_to_profile_url'] is None
|
||||
else:
|
||||
assert response.data['certificate_data']['cert_status'] == 'earned_but_not_available'
|
||||
expected_verify_identity_url = reverse('verify_student_verify_now', args=[self.course.id])
|
||||
expected_verify_identity_url = IDVerificationService.get_verify_location(
|
||||
course_id=self.course.id
|
||||
)
|
||||
# The response contains an absolute URL so this is only checking the path of the final
|
||||
assert expected_verify_identity_url in response.data['verify_identity_url']
|
||||
|
||||
|
||||
@@ -253,9 +253,9 @@ class CoursewareMeta:
|
||||
if self.enrollment_object and self.enrollment_object.mode in CourseMode.VERIFIED_MODES:
|
||||
verification_status = IDVerificationService.user_status(self.effective_user)['status']
|
||||
if verification_status == 'must_reverify':
|
||||
return IDVerificationService.get_verify_location('verify_student_reverify')
|
||||
return IDVerificationService.get_verify_location()
|
||||
else:
|
||||
return IDVerificationService.get_verify_location('verify_student_verify_now', self.course_key)
|
||||
return IDVerificationService.get_verify_location(self.course_key)
|
||||
|
||||
@property
|
||||
def linkedin_add_to_profile_url(self):
|
||||
|
||||
Reference in New Issue
Block a user