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
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
366486fc
Commit
366486fc
authored
6 years ago
by
Robert Raposa
Browse files
Options
Downloads
Patches
Plain Diff
Remove flaky completion test.
* test_render_xblock_publish_completion_is_sent_on_view
parent
5b49a8e9
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_courseware.py
+0
-21
0 additions, 21 deletions
common/test/acceptance/tests/lms/test_lms_courseware.py
with
0 additions
and
21 deletions
common/test/acceptance/tests/lms/test_lms_courseware.py
+
0
−
21
View file @
366486fc
...
...
@@ -853,24 +853,3 @@ class CompletionTestCase(UniqueCourseTest, EventsTestMixin):
# Auto-auth register for the course.
AutoAuthPage
(
self
.
browser
,
username
=
self
.
USERNAME
,
email
=
self
.
EMAIL
,
course_id
=
self
.
course_id
,
staff
=
False
).
visit
()
def
test_render_xblock_publish_completion_is_sent_on_view
(
self
):
"""
Test that when viewing a XBlock in render_xblock, it is correctly marked as completed on view.
"""
block_page
=
RenderXBlockPage
(
self
.
browser
,
self
.
html_1_block
.
locator
)
block_page
.
visit
()
block_page
.
wait_for_page
()
# Initially the block should be marked as needing to be completed on view.
self
.
assertEqual
(
block_page
.
xblock_components_mark_completed_on_view_value
(),
[
self
.
COMPLETION_BY_VIEWING_DELAY_MS
]
)
# Wait and verify that the block is marked as completed on view.
block_page
.
wait_for_xblock_component_to_be_marked_completed_on_view
(
0
)
self
.
assertEqual
(
block_page
.
xblock_components_mark_completed_on_view_value
(),
[
'
0
'
])
# After page refresh, it should not be marked as needing to be completed on view.
self
.
browser
.
refresh
()
block_page
.
wait_for_page
()
self
.
assertEqual
(
block_page
.
xblock_components_mark_completed_on_view_value
(),
[
None
])
This diff is collapsed.
Click to expand it.
Preview
0%
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