diff --git a/common/test/acceptance/pages/lms/dashboard.py b/common/test/acceptance/pages/lms/dashboard.py index 84bc851b7a..8b83a6bf75 100644 --- a/common/test/acceptance/pages/lms/dashboard.py +++ b/common/test/acceptance/pages/lms/dashboard.py @@ -109,8 +109,7 @@ class DashboardPage(PageObject): # There should only be one course listing corresponding to the provided course name. el = course_listing[0] - # Expand the upsell copy and click the upgrade button - el.find_element_by_css_selector('.message-upsell .ui-toggle-expansion').click() + # Click the upgrade button el.find_element_by_css_selector('#upgrade-to-verified').click() upgrade_page.wait_for_page() diff --git a/lms/static/js/dashboard/legacy.js b/lms/static/js/dashboard/legacy.js index fa0c5eedf1..3d7d8d2fa6 100644 --- a/lms/static/js/dashboard/legacy.js +++ b/lms/static/js/dashboard/legacy.js @@ -37,7 +37,6 @@ notifications.focus(); } - $('.message.is-expandable .wrapper-tip').bind('click', toggleExpandMessage); $('.action-more').bind('click', toggleCourseActionsDropdown); // Track clicks of the upgrade button. The `trackLink` method is a helper that makes @@ -80,19 +79,6 @@ return properties; } - function toggleExpandMessage(event) { - var course = $(event.target).closest('.message-upsell').find('.action-upgrade').data('course-id'); - - event.preventDefault(); - - $(this).closest('.message.is-expandable').toggleClass('is-expanded'); - - window.analytics.track('edx.bi.dashboard.upgrade_copy.expanded', { - category: 'upgrade', - label: course - }); - } - function toggleCourseActionsDropdown(event) { var dashboard_index = $(this).data('dashboard-index'); diff --git a/lms/templates/dashboard/_dashboard_course_listing.html b/lms/templates/dashboard/_dashboard_course_listing.html index 682dda56b2..bf44791adc 100644 --- a/lms/templates/dashboard/_dashboard_course_listing.html +++ b/lms/templates/dashboard/_dashboard_course_listing.html @@ -312,11 +312,10 @@ from student.helpers import ( % endif % if course_mode_info['show_upsell'] and not is_course_blocked: -