Commit fd2891ed by Christopher Lee

Merge pull request #6128 from edx/adam/fix-upgrade-text

fix typo on course payment page (ECOM-714)
parents 142c38ed c0b87d87
......@@ -185,7 +185,7 @@ class TestVerifyView(ModuleStoreTestCase):
self.user = UserFactory.create(username="rusty", password="test")
self.client.login(username="rusty", password="test")
self.course_key = SlashSeparatedCourseKey('Robot', '999', 'Test_Course')
CourseFactory.create(org='Robot', number='999', display_name='Test Course')
self.course = CourseFactory.create(org='Robot', number='999', display_name='Test Course')
verified_mode = CourseMode(course_id=self.course_key,
mode_slug="verified",
mode_display_name="Verified Certificate",
......@@ -205,6 +205,10 @@ class TestVerifyView(ModuleStoreTestCase):
kwargs={"course_id": unicode(self.course_key)})
response = self.client.get(url)
self.assertIn("You are now enrolled in", response.content)
# make sure org, name, and number are present
self.assertIn(self.course.display_org_with_default, response.content)
self.assertIn(self.course.display_name_with_default, response.content)
self.assertIn(self.course.display_number_with_default, response.content)
def test_valid_course_upgrade_text(self):
url = reverse('verify_student_verify',
......
......@@ -6,33 +6,33 @@
<h2 class="title">
<span class="wrapper-sts">
<% organization = '<span class="sts-course-org">' + course_org + '</span>' %>
<% course_name = '<span class="sts-course-number">' + course_num + '</span> <span class="sts-course-name">' + 'course_name' + '</span>' %>
<% course_name_html = '<span class="sts-course-number">' + course_num + '</span> <span class="sts-course-name">' + course_name + '</span>' %>
% if upgrade:
<span class="sts-label">
${_("You are upgrading your enrollment for {organization}'s {course_name}").format(
organization=organization,
course_name=course_name
course_name=course_name_html
)}
</span>
% elif reverify:
<span class="sts-label">
${_("You are re-verifying for {organization}'s {course_name}").format(
organization=organization,
course_name=course_name
course_name=course_name_html
)}
</span>
% elif modes_dict and "professional" in modes_dict:
<span class="sts-label">
${_("You are enrolling in {organization}'s {course_name}").format(
organization=organization,
course_name=course_name
course_name=course_name_html
)}
</span>
% else:
<span class="sts-label">
${_("Congrats! You are now enrolled in {organization}'s {course_name}").format(
organization=organization,
course_name=course_name
course_name=course_name_html
)}
</span>
% endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment