Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
11c2185d
Commit
11c2185d
authored
6 years ago
by
Jeremy Bowman
Browse files
Options
Downloads
Patches
Plain Diff
TE-2802 Make notes visibility toggling tests more reliable
parent
b14d9b48
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/test/acceptance/tests/lms/test_lms_edxnotes.py
+6
-6
6 additions, 6 deletions
common/test/acceptance/tests/lms/test_lms_edxnotes.py
with
6 additions
and
6 deletions
common/test/acceptance/tests/lms/test_lms_edxnotes.py
+
6
−
6
View file @
11c2185d
...
...
@@ -1499,12 +1499,12 @@ class EdxNotesToggleNotesTest(EdxNotesTestMixin):
"""
# Disable all notes
self
.
note_unit_page
.
toggle_visibility
()
self
.
assertEqual
(
len
(
self
.
note_unit_page
.
notes
)
,
0
)
self
.
note_unit_page
.
wait_for
(
lambda
:
len
(
self
.
note_unit_page
.
notes
)
==
0
,
u
"
Notes are hidden
"
)
self
.
courseware_page
.
go_to_sequential_position
(
2
)
self
.
assertEqual
(
len
(
self
.
note_unit_page
.
notes
)
,
0
)
self
.
note_unit_page
.
wait_for
(
lambda
:
len
(
self
.
note_unit_page
.
notes
)
==
0
,
u
"
Notes are hidden
"
)
self
.
course_home_page
.
visit
()
self
.
course_home_page
.
outline
.
go_to_section
(
u
"
Test Section 1
"
,
u
"
Test Subsection 2
"
)
self
.
assertEqual
(
len
(
self
.
note_unit_page
.
notes
)
,
0
)
self
.
note_unit_page
.
wait_for
(
lambda
:
len
(
self
.
note_unit_page
.
notes
)
==
0
,
u
"
Notes are hidden
"
)
def
test_can_reenable_all_notes
(
self
):
"""
...
...
@@ -1526,9 +1526,9 @@ class EdxNotesToggleNotesTest(EdxNotesTestMixin):
# Enable notes to make sure that I can enable notes without refreshing
# the page.
self
.
note_unit_page
.
toggle_visibility
()
self
.
assertGreater
(
len
(
self
.
note_unit_page
.
notes
)
,
0
)
self
.
note_unit_page
.
wait_for
(
lambda
:
len
(
self
.
note_unit_page
.
notes
)
>
0
,
u
"
Notes are visible
"
)
self
.
courseware_page
.
go_to_sequential_position
(
2
)
self
.
assertGreater
(
len
(
self
.
note_unit_page
.
notes
)
,
0
)
self
.
note_unit_page
.
wait_for
(
lambda
:
len
(
self
.
note_unit_page
.
notes
)
>
0
,
u
"
Notes are visible
"
)
self
.
course_home_page
.
visit
()
self
.
course_home_page
.
outline
.
go_to_section
(
u
"
Test Section 1
"
,
u
"
Test Subsection 2
"
)
self
.
assertGreater
(
len
(
self
.
note_unit_page
.
notes
)
,
0
)
self
.
note_unit_page
.
wait_for
(
lambda
:
len
(
self
.
note_unit_page
.
notes
)
>
0
,
u
"
Notes are visible
"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment