Commit 67e61e87 by cahrens

Remove flaky editing test.

EDUCATOR-511
parent 583719cc
...@@ -526,7 +526,8 @@ class PayAndVerifyTest(EventsTestMixin, UniqueCourseTest): ...@@ -526,7 +526,8 @@ class PayAndVerifyTest(EventsTestMixin, UniqueCourseTest):
self.assertEqual(enrollment_mode, 'verified') self.assertEqual(enrollment_mode, 'verified')
class CourseWikiTest(UniqueCourseTest): @attr('a11y')
class CourseWikiA11yTest(UniqueCourseTest):
""" """
Tests that verify the course wiki. Tests that verify the course wiki.
""" """
...@@ -535,7 +536,7 @@ class CourseWikiTest(UniqueCourseTest): ...@@ -535,7 +536,7 @@ class CourseWikiTest(UniqueCourseTest):
""" """
Initialize pages and install a course fixture. Initialize pages and install a course fixture.
""" """
super(CourseWikiTest, self).setUp() super(CourseWikiA11yTest, self).setUp()
# self.course_info['number'] must be shorter since we are accessing the wiki. See TNL-1751 # self.course_info['number'] must be shorter since we are accessing the wiki. See TNL-1751
self.course_info['number'] = self.unique_id[0:6] self.course_info['number'] = self.unique_id[0:6]
...@@ -562,41 +563,20 @@ class CourseWikiTest(UniqueCourseTest): ...@@ -562,41 +563,20 @@ class CourseWikiTest(UniqueCourseTest):
self.course_wiki_page.open_editor() self.course_wiki_page.open_editor()
self.course_wiki_edit_page.wait_for_page() self.course_wiki_edit_page.wait_for_page()
@attr(shard=1) def test_view(self):
def test_edit_course_wiki(self):
"""
Wiki page by default is editable for students.
After accessing the course wiki,
Replace the content of the default page
Confirm new content has been saved
"""
content = "hello"
self._open_editor()
self.course_wiki_edit_page.replace_wiki_content(content)
self.assertEqual(content, self.course_wiki_edit_page.get_wiki_editor_content())
self.course_wiki_edit_page.save_wiki_content()
actual_content = unicode(self.course_wiki_page.q(css='.wiki-article p').text[0])
self.assertEqual(content, actual_content)
@attr('a11y')
def test_view_a11y(self):
""" """
Verify the basic accessibility of the wiki page as initially displayed. Verify the basic accessibility of the wiki page as initially displayed.
""" """
self.course_wiki_page.a11y_audit.check_for_accessibility_errors() self.course_wiki_page.a11y_audit.check_for_accessibility_errors()
@attr('a11y') def test_edit(self):
def test_edit_a11y(self):
""" """
Verify the basic accessibility of edit wiki page. Verify the basic accessibility of edit wiki page.
""" """
self._open_editor() self._open_editor()
self.course_wiki_edit_page.a11y_audit.check_for_accessibility_errors() self.course_wiki_edit_page.a11y_audit.check_for_accessibility_errors()
@attr('a11y') def test_changes(self):
def test_changes_a11y(self):
""" """
Verify the basic accessibility of changes wiki page. Verify the basic accessibility of changes wiki page.
""" """
...@@ -605,8 +585,7 @@ class CourseWikiTest(UniqueCourseTest): ...@@ -605,8 +585,7 @@ class CourseWikiTest(UniqueCourseTest):
history_page.wait_for_page() history_page.wait_for_page()
history_page.a11y_audit.check_for_accessibility_errors() history_page.a11y_audit.check_for_accessibility_errors()
@attr('a11y') def test_children(self):
def test_children_a11y(self):
""" """
Verify the basic accessibility of changes wiki page. Verify the basic accessibility of changes wiki page.
""" """
......
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