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
d86502bd
Commit
d86502bd
authored
Jul 03, 2013
by
JonahStanley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added in a retry for checking the class of the video
parent
b7eb287a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
cms/djangoapps/contentstore/features/common.py
+7
-1
No files found.
cms/djangoapps/contentstore/features/common.py
View file @
d86502bd
...
...
@@ -223,7 +223,13 @@ def shows_captions(step, show_captions):
# Prevent cookies from overriding course settings
world
.
browser
.
cookies
.
delete
(
'hide_captions'
)
if
show_captions
==
'does not'
:
assert
world
.
css_find
(
'.video'
)[
0
]
.
has_class
(
'closed'
)
attempt
=
0
while
attempt
<
5
:
try
:
assert
world
.
css_find
(
'.video'
)[
0
]
.
has_class
(
'closed'
)
except
:
attempt
+=
1
assert_true
(
attempt
<
5
,
"There was a stale reference exception in accessing the class of the video"
)
else
:
assert
world
.
is_css_not_present
(
'.video.closed'
)
...
...
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