Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
e9e72aec
Commit
e9e72aec
authored
Jul 19, 2017
by
Christina Roberts
Committed by
GitHub
Jul 19, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15596 from edx/christina/update-organizations
Remove flaky wiki editing test
parents
2eea7606
67e61e87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
28 deletions
+7
-28
common/test/acceptance/tests/lms/test_lms.py
+7
-28
No files found.
common/test/acceptance/tests/lms/test_lms.py
View file @
e9e72aec
...
...
@@ -526,7 +526,8 @@ class PayAndVerifyTest(EventsTestMixin, UniqueCourseTest):
self
.
assertEqual
(
enrollment_mode
,
'verified'
)
class
CourseWikiTest
(
UniqueCourseTest
):
@attr
(
'a11y'
)
class
CourseWikiA11yTest
(
UniqueCourseTest
):
"""
Tests that verify the course wiki.
"""
...
...
@@ -535,7 +536,7 @@ class CourseWikiTest(UniqueCourseTest):
"""
Initialize pages and install a course fixture.
"""
super
(
CourseWikiTest
,
self
)
.
setUp
()
super
(
CourseWiki
A11y
Test
,
self
)
.
setUp
()
# 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
]
...
...
@@ -562,41 +563,20 @@ class CourseWikiTest(UniqueCourseTest):
self
.
course_wiki_page
.
open_editor
()
self
.
course_wiki_edit_page
.
wait_for_page
()
@attr
(
shard
=
1
)
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
):
def
test_view
(
self
):
"""
Verify the basic accessibility of the wiki page as initially displayed.
"""
self
.
course_wiki_page
.
a11y_audit
.
check_for_accessibility_errors
()
@attr
(
'a11y'
)
def
test_edit_a11y
(
self
):
def
test_edit
(
self
):
"""
Verify the basic accessibility of edit wiki page.
"""
self
.
_open_editor
()
self
.
course_wiki_edit_page
.
a11y_audit
.
check_for_accessibility_errors
()
@attr
(
'a11y'
)
def
test_changes_a11y
(
self
):
def
test_changes
(
self
):
"""
Verify the basic accessibility of changes wiki page.
"""
...
...
@@ -605,8 +585,7 @@ class CourseWikiTest(UniqueCourseTest):
history_page
.
wait_for_page
()
history_page
.
a11y_audit
.
check_for_accessibility_errors
()
@attr
(
'a11y'
)
def
test_children_a11y
(
self
):
def
test_children
(
self
):
"""
Verify the basic accessibility of changes wiki page.
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment