Commit d32355fb by Christine Lytwynec

Make a11y test inherit from a base class

parent 2b63ddb5
......@@ -4,10 +4,10 @@ Accessibility tests for LMS dashboard page.
Run just this test with:
SELENIUM_BROWSER=phantomjs paver test_bokchoy -d accessibility -t test_lms_dashboard_axs.py
"""
from ..tests.lms.test_lms_dashboard import LmsDashboardPageTest
from ..tests.lms.test_lms_dashboard import BaseLmsDashboardTest
class LmsDashboardAxsTest(LmsDashboardPageTest):
class LmsDashboardAxsTest(BaseLmsDashboardTest):
"""
Class to test lms student dashboard accessibility.
"""
......
......@@ -8,8 +8,8 @@ from ...pages.lms.auto_auth import AutoAuthPage
from ...pages.lms.dashboard import DashboardPage
class LmsDashboardPageTest(UniqueCourseTest):
""" Test suite for the LMS Student Dashboard page """
class BaseLmsDashboardTest(UniqueCourseTest):
""" Base test suite for the LMS Student Dashboard """
def setUp(self):
"""
......@@ -17,7 +17,7 @@ class LmsDashboardPageTest(UniqueCourseTest):
"""
# Some parameters are provided by the parent setUp() routine, such as the following:
# self.course_id, self.course_info, self.unique_id
super(LmsDashboardPageTest, self).setUp()
super(BaseLmsDashboardTest, self).setUp()
# Load page objects for use by the tests
self.dashboard_page = DashboardPage(self.browser)
......@@ -47,6 +47,10 @@ class LmsDashboardPageTest(UniqueCourseTest):
# Navigate the authenticated, enrolled user to the dashboard page and get testing!
self.dashboard_page.visit()
class LmsDashboardPageTest(BaseLmsDashboardTest):
""" Test suite for the LMS Student Dashboard page """
def test_dashboard_course_listings(self):
"""
Perform a general validation of the course listings section
......
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