'Test the accessibility of the badge listings and sharing modal.'

def test_badges_accessibility(self):

    username = 'testcert'
    AutoAuthPage(self.browser, username=username).visit()
    profile_page = self.visit_profile_page(username)
    profile_page.display_accomplishments()
    profile_page.a11y_audit.check_for_accessibility_errors()
    profile_page.badges[0].display_modal()
    profile_page.a11y_audit.check_for_accessibility_errors()
