Merge pull request #15306 from edx/christina/edu-511
Remove skip from test where failure cannot be reproduced
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user