Commit 47e203ce by Dennis Jen

Merge pull request #184 from edx/dsjen/education-metric-tooltip

Updated education metric tooltip to "Associate"
parents 147bdd34 8e223e68
...@@ -175,15 +175,18 @@ class CourseEnrollmentDemographicsEducationTests(CourseDemographicsPageTestsMixi ...@@ -175,15 +175,18 @@ class CourseEnrollmentDemographicsEducationTests(CourseDemographicsPageTestsMixi
education_groups = [ education_groups = [
{ {
'levels': ['primary', 'junior_secondary', 'secondary'], 'levels': ['primary', 'junior_secondary', 'secondary'],
'stat_type': 'education_high_school_or_less_enrollment' 'stat_type': 'education_high_school_or_less_enrollment',
'tooltip': 'The percentage of students who selected Secondary/high school, Junior secondary/junior high/middle school, or Elementary/primary school as their highest level of education completed.'
}, },
{ {
'levels': ['associates', 'bachelors'], 'levels': ['associates', 'bachelors'],
'stat_type': 'education_college_enrollment' 'stat_type': 'education_college_enrollment',
'tooltip': "The percentage of students who selected Bachelor's degree or Associate degree as their highest level of education completed."
}, },
{ {
'levels': ['masters', 'doctorate'], 'levels': ['masters', 'doctorate'],
'stat_type': 'education_advanced_enrollment' 'stat_type': 'education_advanced_enrollment',
'tooltip': "The percentage of students who selected Doctorate or Master's or professional degree as their highest level of education completed."
} }
] ]
...@@ -194,6 +197,7 @@ class CourseEnrollmentDemographicsEducationTests(CourseDemographicsPageTestsMixi ...@@ -194,6 +197,7 @@ class CourseEnrollmentDemographicsEducationTests(CourseDemographicsPageTestsMixi
group_total = float(sum([datum['count'] for datum in filtered_group])) group_total = float(sum([datum['count'] for datum in filtered_group]))
expected_percent_display = self.build_display_percentage(group_total, total) expected_percent_display = self.build_display_percentage(group_total, total)
self.assertSummaryPointValueEquals(selector, expected_percent_display) self.assertSummaryPointValueEquals(selector, expected_percent_display)
self.assertSummaryTooltipEquals(selector, group['tooltip'])
def _test_table_row(self, datum, column, sum_count): def _test_table_row(self, datum, column, sum_count):
expected = [self.EDUCATION_NAMES[datum['education_level']], expected = [self.EDUCATION_NAMES[datum['education_level']],
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
<div class="col-xs-12 col-sm-3" data-stat-type="education_college_enrollment"> <div class="col-xs-12 col-sm-3" data-stat-type="education_college_enrollment">
{# Translators: This is a label to identify student educational background. #} {# Translators: This is a label to identify student educational background. #}
{% trans "College Degree" as label %} {% trans "College Degree" as label %}
{% trans "The percentage of students who selected Bachelor's degree or Associate's degree as their highest level of education completed." as tooltip %} {% trans "The percentage of students who selected Bachelor's degree or Associate degree as their highest level of education completed." as tooltip %}
{% summary_point summary.college|metric_percentage label tooltip=tooltip %} {% summary_point summary.college|metric_percentage label tooltip=tooltip %}
</div> </div>
......
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