update link of "Contact" in lms footer to lead new support form

LEARNER-4041
This commit is contained in:
Tasawer Nawaz
2018-01-31 15:41:20 +05:00
parent 0514e0a907
commit ab744a2516
2 changed files with 5 additions and 4 deletions

View File

@@ -179,7 +179,7 @@ def _footer_connect_links():
}
for link_name, link_url, link_title in [
("blog", marketing_link("BLOG"), _("Blog")),
("contact", marketing_link("CONTACT"), _("Contact Us")),
("contact", reverse("support:contact_us"), _("Contact Us")),
("help-center", settings.SUPPORT_SITE_LINK, _("Help Center")),
("media_kit", marketing_link("MEDIA_KIT"), _("Media Kit")),
("donate", marketing_link("DONATE"), _("Donate")),
@@ -204,7 +204,7 @@ def _footer_navigation_links():
("blog", marketing_link("BLOG"), _("Blog")),
("news", marketing_link("NEWS"), _("News")),
("help-center", settings.SUPPORT_SITE_LINK, _("Help Center")),
("contact", marketing_link("CONTACT"), _("Contact")),
("contact", reverse("support:contact_us"), _("Contact")),
("careers", marketing_link("CAREERS"), _("Careers")),
("donate", marketing_link("DONATE"), _("Donate")),
]

View File

@@ -40,6 +40,7 @@ class TestHeader(TestCase):
class TestFooter(TestCase):
maxDiff = None
"""Test retrieving the footer. """
@mock.patch.dict('django.conf.settings.FEATURES', {'ENABLE_MKTG_SITE': True})
@mock.patch.dict('django.conf.settings.MKTG_URLS', {
@@ -76,7 +77,7 @@ class TestFooter(TestCase):
{'url': 'https://edx.org/edx-blog', 'name': 'blog', 'title': 'Blog'},
{'url': 'https://edx.org/news-announcements', 'name': 'news', 'title': 'News'},
{'url': 'https://support.example.com', 'name': 'help-center', 'title': 'Help Center'},
{'url': 'https://edx.org/contact', 'name': 'contact', 'title': 'Contact'},
{'url': '/support/contact_us', 'name': 'contact', 'title': 'Contact'},
{'url': 'https://edx.org/careers', 'name': 'careers', 'title': 'Careers'},
{'url': 'https://edx.org/donate', 'name': 'donate', 'title': 'Donate'}
],
@@ -102,7 +103,7 @@ class TestFooter(TestCase):
],
'connect_links': [
{'url': 'https://edx.org/edx-blog', 'name': 'blog', 'title': 'Blog'},
{'url': 'https://edx.org/contact', 'name': 'contact', 'title': 'Contact Us'},
{'url': '/support/contact_us', 'name': 'contact', 'title': 'Contact Us'},
{'url': 'https://support.example.com', 'name': 'help-center', 'title': 'Help Center'},
{'url': 'https://edx.org/media-kit', 'name': 'media_kit', 'title': 'Media Kit'},
{'url': 'https://edx.org/donate', 'name': 'donate', 'title': 'Donate'}