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
ff4f0787
Commit
ff4f0787
authored
Jan 09, 2015
by
Jesse Zoldak
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6522 from edx/zoldak/video-troubleshooting
Add debug logging to video tests
parents
03d20e09
e77acdf4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
common/test/acceptance/pages/lms/video/video.py
+7
-0
No files found.
common/test/acceptance/pages/lms/video/video.py
View file @
ff4f0787
...
...
@@ -9,6 +9,8 @@ from bok_choy.page_object import PageObject
from
bok_choy.promise
import
EmptyPromise
,
Promise
from
bok_choy.javascript
import
wait_for_js
,
js_defined
import
logging
log
=
logging
.
getLogger
(
'VideoPage'
)
VIDEO_BUTTONS
=
{
'CC'
:
'.hide-subtitles'
,
...
...
@@ -661,6 +663,11 @@ class VideoPage(PageObject):
state_selector
=
self
.
get_element_selector
(
CSS_CLASS_NAMES
[
'video_container'
])
current_state
=
self
.
q
(
css
=
state_selector
)
.
attrs
(
'class'
)[
0
]
# For troubleshooting purposes show what the current state is.
# The debug statements will only be displayed in the event of a failure.
logging
.
debug
(
"Current state of '{}' element is '{}'"
.
format
(
state_selector
,
current_state
))
# See the JS video player's onStateChange function
if
'is-playing'
in
current_state
:
return
'playing'
elif
'is-paused'
in
current_state
:
...
...
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