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
8ce94d2b
Commit
8ce94d2b
authored
Nov 06, 2015
by
David Baumgold
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10523 from edx/db/fix-cc-flaky-tests
Fix flaky tests related to creative commons
parents
ab8aedc2
07f331bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
common/test/acceptance/tests/video/test_video_license.py
+10
-4
No files found.
common/test/acceptance/tests/video/test_video_license.py
View file @
8ce94d2b
...
...
@@ -84,8 +84,11 @@ class VideoLicenseTest(StudioCourseTest):
self
.
lms_courseware
.
visit
()
video
=
self
.
lms_courseware
.
q
(
css
=
".vert .xblock .video"
)
self
.
assertTrue
(
video
.
is_present
())
video_license
=
self
.
lms_courseware
.
q
(
css
=
".vert .xblock.xmodule_VideoModule .xblock-license"
)
self
.
assertTrue
(
video_license
.
is_present
())
video_license_css
=
".vert .xblock.xmodule_VideoModule .xblock-license"
self
.
lms_courseware
.
wait_for_element_presence
(
video_license_css
,
"Video module license block is present"
)
video_license
=
self
.
lms_courseware
.
q
(
css
=
video_license_css
)
self
.
assertEqual
(
video_license
.
text
[
0
],
"© All Rights Reserved"
)
def
test_cc_license
(
self
):
...
...
@@ -111,6 +114,9 @@ class VideoLicenseTest(StudioCourseTest):
self
.
lms_courseware
.
visit
()
video
=
self
.
lms_courseware
.
q
(
css
=
".vert .xblock .video"
)
self
.
assertTrue
(
video
.
is_present
())
video_license
=
self
.
lms_courseware
.
q
(
css
=
".vert .xblock.xmodule_VideoModule .xblock-license"
)
self
.
assertTrue
(
video_license
.
is_present
())
video_license_css
=
".vert .xblock.xmodule_VideoModule .xblock-license"
self
.
lms_courseware
.
wait_for_element_presence
(
video_license_css
,
"Video module license block is present"
)
video_license
=
self
.
lms_courseware
.
q
(
css
=
video_license_css
)
self
.
assertIn
(
"Some Rights Reserved"
,
video_license
.
text
[
0
])
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