diff --git a/common/test/acceptance/accessibility/__init__.py b/common/test/acceptance/accessibility/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/common/test/acceptance/accessibility/test_studio_library_axs.py b/common/test/acceptance/accessibility/test_studio_library_axs.py new file mode 100644 index 0000000000..17d22ca29b --- /dev/null +++ b/common/test/acceptance/accessibility/test_studio_library_axs.py @@ -0,0 +1,37 @@ +""" +Accessibility tests for Studio Library pages. + +Run just this test with: +SELENIUM_BROWSER=phantomjs paver test_bokchoy -d accessibility -t test_studio_library_axs.py +""" +from ..tests.studio.base_studio_test import StudioLibraryTest +from ..pages.studio.library import LibraryEditPage + + +class StudioLibraryAxsTest(StudioLibraryTest): + """ + Class to test Studio pages accessibility. + """ + + def test_lib_edit_page_axs(self): + """ + Check accessibility of LibraryEditPage. + """ + lib_page = LibraryEditPage(self.browser, self.library_key) + lib_page.visit() + lib_page.wait_until_ready() + report = lib_page.do_axs_audit() + + # There was one page in this session + self.assertEqual(1, len(report)) + + result = report[0] + # Verify that this page has no accessibility errors. + self.assertEqual(0, len(result.errors)) + # Verify that this page currently has 3 accessibility warnings. + self.assertEqual(3, len(result.warnings)) + # And that these are the warnings that the page currently gives. + for warning in result.warnings: + self.assertTrue( + warning.startswith(('Warning: AX_FOCUS_01', 'Warning: AX_COLOR_01', 'Warning: AX_IMAGE_01',)), + msg="Unexpected warning: {}".format(warning)) diff --git a/requirements/edx/github.txt b/requirements/edx/github.txt index 3166e3f164..d7e4ce9f8d 100644 --- a/requirements/edx/github.txt +++ b/requirements/edx/github.txt @@ -34,7 +34,7 @@ git+https://github.com/hmarr/django-debug-toolbar-mongo.git@b0686a76f1ce3532088c -e git+https://github.com/edx/codejail.git@6b17c33a89bef0ac510926b1d7fea2748b73aadd#egg=codejail -e git+https://github.com/edx/js-test-tool.git@v0.1.6#egg=js_test_tool -e git+https://github.com/edx/event-tracking.git@0.2.0#egg=event-tracking --e git+https://github.com/edx/bok-choy.git@v0.3.4#egg=bok_choy +-e git+https://github.com/edx/bok-choy.git@1c968796129f4d281e112804b889b6f369f52011#egg=bok_choy -e git+https://github.com/edx-solutions/django-splash.git@7579d052afcf474ece1239153cffe1c89935bc4f#egg=django-splash -e git+https://github.com/edx/acid-block.git@e46f9cda8a03e121a00c7e347084d142d22ebfb7#egg=acid-xblock -e git+https://github.com/edx/edx-ora2.git@release-2015-05-08T16.15#egg=edx-ora2