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
b3b1b7e4
Commit
b3b1b7e4
authored
Nov 13, 2015
by
Diana Huang
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10610 from edx/diana/flaky-pdf-testbook-test-control
Start running the PDF Textbook test again.
parents
04c0b3ae
de47bcde
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
72 deletions
+0
-72
common/test/acceptance/tests/lms/test_lms.py
+0
-72
No files found.
common/test/acceptance/tests/lms/test_lms.py
View file @
b3b1b7e4
...
...
@@ -708,7 +708,6 @@ class PDFTextBooksTabTest(UniqueCourseTest):
# Auto-auth register for the course
AutoAuthPage
(
self
.
browser
,
course_id
=
self
.
course_id
)
.
visit
()
@skip
(
'TODO: fix this, see TNL-2083'
)
def
test_verify_textbook_tabs
(
self
):
"""
Test multiple pdf textbooks loads correctly in lms.
...
...
@@ -721,77 +720,6 @@ class PDFTextBooksTabTest(UniqueCourseTest):
@attr
(
'shard_1'
)
class
VideoTest
(
UniqueCourseTest
):
"""
Navigate to a video in the courseware and play it.
"""
def
setUp
(
self
):
"""
Initialize pages and install a course fixture.
"""
super
(
VideoTest
,
self
)
.
setUp
()
self
.
course_info_page
=
CourseInfoPage
(
self
.
browser
,
self
.
course_id
)
self
.
course_nav
=
CourseNavPage
(
self
.
browser
)
self
.
tab_nav
=
TabNavPage
(
self
.
browser
)
self
.
video
=
VideoPage
(
self
.
browser
)
# Install a course fixture with a video component
course_fix
=
CourseFixture
(
self
.
course_info
[
'org'
],
self
.
course_info
[
'number'
],
self
.
course_info
[
'run'
],
self
.
course_info
[
'display_name'
]
)
course_fix
.
add_children
(
XBlockFixtureDesc
(
'chapter'
,
'Test Section'
)
.
add_children
(
XBlockFixtureDesc
(
'sequential'
,
'Test Subsection'
)
.
add_children
(
XBlockFixtureDesc
(
'vertical'
,
'Test Unit'
)
.
add_children
(
XBlockFixtureDesc
(
'video'
,
'Video'
)
))))
.
install
()
# Auto-auth register for the course
AutoAuthPage
(
self
.
browser
,
course_id
=
self
.
course_id
)
.
visit
()
@skip
(
"BLD-563: Video Player Stuck on Pause"
)
def
test_video_player
(
self
):
"""
Play a video in the courseware.
"""
# Navigate to a video
self
.
course_info_page
.
visit
()
self
.
tab_nav
.
go_to_tab
(
'Courseware'
)
# The video should start off paused
# Since the video hasn't loaded yet, it's elapsed time is 0
self
.
assertFalse
(
self
.
video
.
is_playing
)
self
.
assertEqual
(
self
.
video
.
elapsed_time
,
0
)
# Play the video
self
.
video
.
play
()
# Now we should be playing
self
.
assertTrue
(
self
.
video
.
is_playing
)
# Commented the below EmptyPromise, will move to its page once this test is working and stable
# Also there is should be no Promise check in any test as this should be done in Page Object
# Wait for the video to load the duration
# EmptyPromise(
# lambda: self.video.duration > 0,
# 'video has duration', timeout=20
# ).fulfill()
# Pause the video
self
.
video
.
pause
()
# Expect that the elapsed time and duration are reasonable
# Again, we can't expect the video to actually play because of
# latency through the ssh tunnel
self
.
assertGreaterEqual
(
self
.
video
.
elapsed_time
,
0
)
self
.
assertGreaterEqual
(
self
.
video
.
duration
,
self
.
video
.
elapsed_time
)
@attr
(
'shard_1'
)
class
VisibleToStaffOnlyTest
(
UniqueCourseTest
):
"""
Tests that content with visible_to_staff_only set to True cannot be viewed by students.
...
...
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