Commit 04bf257d by cahrens

Remove flaky decorator.

Test passed > 130 times. Perhaps
querying for the content changes timing.
parent 2b25c9fc
......@@ -3,7 +3,7 @@ Wiki tab on courses
"""
from common.test.acceptance.pages.lms.course_page import CoursePage
from common.test.acceptance.pages.studio.utils import type_in_codemirror
from common.test.acceptance.pages.studio.utils import type_in_codemirror, get_codemirror_value
class CourseWikiPage(CoursePage):
......@@ -91,6 +91,13 @@ class CourseWikiEditPage(CourseWikiSubviewPage):
"""
type_in_codemirror(self, 0, content)
def get_wiki_editor_content(self):
"""
Returns the content currently in the wiki editor.
"""
return get_codemirror_value(self, 0)
def save_wiki_content(self):
"""
When the editor is open, click save
......
......@@ -563,7 +563,6 @@ class CourseWikiTest(UniqueCourseTest):
self.course_wiki_edit_page.wait_for_page()
@attr(shard=1)
@skip # EDUCATOR-511
def test_edit_course_wiki(self):
"""
Wiki page by default is editable for students.
......@@ -576,6 +575,7 @@ class CourseWikiTest(UniqueCourseTest):
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)
......
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