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