Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
ff4f0787
Commit
ff4f0787
authored
10 years ago
by
Jesse Zoldak
Browse files
Options
Downloads
Plain Diff
Merge pull request #6522 from edx/zoldak/video-troubleshooting
Add debug logging to video tests
parents
03d20e09
e77acdf4
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/test/acceptance/pages/lms/video/video.py
+7
-0
7 additions, 0 deletions
common/test/acceptance/pages/lms/video/video.py
with
7 additions
and
0 deletions
common/test/acceptance/pages/lms/video/video.py
+
7
−
0
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
:
...
...
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