Merge pull request #14121 from edx/cptvitamin/AC-680

removes redundant alt attribute value
This commit is contained in:
Mark Sadecki
2016-12-12 11:04:02 -05:00
committed by GitHub
3 changed files with 12 additions and 1 deletions

View File

@@ -156,6 +156,10 @@ class DashboardPage(PageObject):
""" Retrieves the specified social sharing widget by its classification """
return self.q(css='a.action-{}'.format(widget_name))
def get_profile_img(self):
""" Retrieves the user's profile image """
return self.q(css='img.user-image-frame')
def get_courses(self):
"""
Get all courses shown in the dashboard

View File

@@ -305,6 +305,13 @@ class LmsDashboardPageTest(BaseLmsDashboardTest):
# and course starts within 5 days
self.assertEqual(course_date, expected_course_date)
def test_profile_img_alt_empty(self):
"""
Validate value of profile image alt attribue is null
"""
profile_img = self.dashboard_page.get_profile_img()
self.assertEqual(profile_img.attrs('alt')[0], '')
@attr('a11y')
class LmsDashboardA11yTest(BaseLmsDashboardTestMultiple):