Skip to content
Snippets Groups Projects
Commit a7bc22eb authored by tanyaxp's avatar tanyaxp Committed by David Ormsbee
Browse files

Remove the course name from the enroll button. (#20635)

Remove the course name from the enroll button.

Replace the course name and change the button text to ‘Enroll Now’. The course name appears above this button.

Use case: The Threat of Nuclear Terrorism course team would prefer "Enroll Now” instead of "Enroll in Nuclear Terrorism" because of various interpretations of what "enrolling in nuclear terrorism" could mean.
parent 237d264a
Branches
Tags release-2020-05-28-17.35
No related merge requests found
......@@ -253,7 +253,7 @@ class AboutTestCase(LoginEnrollmentTestCase, SharedModuleStoreTestCase, EventTra
if course_visibility == COURSE_VISIBILITY_PUBLIC or course_visibility == COURSE_VISIBILITY_PUBLIC_OUTLINE:
self.assertIn("View Course", resp.content)
else:
self.assertIn("Enroll in", resp.content)
self.assertIn("Enroll Now", resp.content)
class AboutTestCaseXML(LoginEnrollmentTestCase, ModuleStoreTestCase):
......@@ -388,7 +388,7 @@ class AboutWithInvitationOnly(SharedModuleStoreTestCase):
url = reverse('about_course', args=[text_type(self.course.id)])
resp = self.client.get(url)
self.assertEqual(resp.status_code, 200)
self.assertIn(u"Enroll in {}".format(self.course.id.course), resp.content.decode('utf-8'))
self.assertIn(u"Enroll Now", resp.content.decode('utf-8'))
# Check that registration button is present
self.assertIn(REG_STR, resp.content)
......
......@@ -316,7 +316,7 @@ class TestSites(SharedModuleStoreTestCase, LoginEnrollmentTestCase):
url = reverse('about_course', args=[text_type(self.course_with_visibility.id)])
resp = self.client.get(url)
self.assertEqual(resp.status_code, 200)
self.assertIn(u"Enroll in {}".format(self.course_with_visibility.id.course), resp.content.decode(resp.charset))
self.assertIn(u"Enroll Now", resp.content.decode(resp.charset))
self.assertNotIn(u"Add {} to Cart ($10)".format(
self.course_with_visibility.id.course),
resp.content.decode(resp.charset)
......@@ -326,10 +326,7 @@ class TestSites(SharedModuleStoreTestCase, LoginEnrollmentTestCase):
url = reverse('about_course', args=[text_type(self.course_with_visibility.id)])
resp = self.client.get(url, HTTP_HOST=settings.MICROSITE_TEST_HOSTNAME)
self.assertEqual(resp.status_code, 200)
self.assertNotIn(u"Enroll in {}".format(
self.course_with_visibility.id.course),
resp.content.decode(resp.charset)
)
self.assertNotIn(u"Enroll Now", resp.content.decode(resp.charset))
self.assertIn(u"Add {} to Cart <span>($10 USD)</span>".format(
self.course_with_visibility.id.course
), resp.content.decode(resp.charset))
......
......@@ -170,7 +170,7 @@ from six import string_types
href_class = "register"
%>
<a href="${reg_href}" class="${href_class}">
${_("Enroll in {course_name}").format(course_name=course.display_number_with_default)}
${_("Enroll Now")}
</a>
<div id="register_error"></div>
%endif
......
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