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
6878a3c2
Unverified
Commit
6878a3c2
authored
6 years ago
by
Feanil Patel
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #18504 from edx/feanil/remove_flaky_video_tests
Remove flaky video test.
parents
43527542
1caeb328
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/test/acceptance/tests/video/test_video_module.py
+0
-78
0 additions, 78 deletions
common/test/acceptance/tests/video/test_video_module.py
with
0 additions
and
78 deletions
common/test/acceptance/tests/video/test_video_module.py
+
0
−
78
View file @
6878a3c2
...
...
@@ -793,84 +793,6 @@ class YouTubeVideoTest(VideoBaseTest):
self
.
assertEqual
(
self
.
video
.
caption_languages
,
{
'
zh_HANS
'
:
'
Simplified Chinese
'
,
'
zh_HANT
'
:
'
Traditional Chinese
'
})
def
test_video_bumper_render
(
self
):
"""
Scenario: Multiple videos with bumper in sequentials all load and work, switching between sequentials
Given it has videos
"
A,B
"
in
"
Youtube
"
and
"
HTML5
"
modes in position
"
1
"
of sequential
And video
"
C
"
in
"
Youtube
"
mode in position
"
2
"
of sequential
When I open sequential position
"
1
"
Then I see video
"
B
"
has a poster
When I click on it
Then I see video bumper is playing
When I skip the bumper
Then I see the main video
When I click on video
"
A
"
Then the main video starts playing
When I open sequential position
"
2
"
And click on the poster
Then the main video starts playing
Then I see that the main video starts playing once I go back to position
"
2
"
of sequential
When I reload the page
Then I see that the main video starts playing when I click on the poster
"""
additional_data
=
{
u
'
video_bumper
'
:
{
u
'
value
'
:
{
"
transcripts
"
:
{},
"
video_id
"
:
"
video_001
"
}
}
}
self
.
contents_of_verticals
=
[
[{
'
display_name
'
:
'
A
'
},
{
'
display_name
'
:
'
B
'
,
'
metadata
'
:
self
.
metadata_for_mode
(
'
html5
'
)}],
[{
'
display_name
'
:
'
C
'
}]
]
tab1_video_names
=
[
'
A
'
,
'
B
'
]
tab2_video_names
=
[
'
C
'
]
def
execute_video_steps
(
video_names
):
"""
Execute video steps
"""
for
video_name
in
video_names
:
self
.
video
.
use_video
(
video_name
)
self
.
assertTrue
(
self
.
video
.
is_poster_shown
)
self
.
video
.
click_on_poster
()
self
.
video
.
wait_for_video_player_render
(
autoplay
=
True
)
self
.
assertIn
(
self
.
video
.
state
,
[
'
playing
'
,
'
buffering
'
,
'
finished
'
])
self
.
course_fixture
.
add_advanced_settings
(
additional_data
)
self
.
navigate_to_video_no_render
()
self
.
video
.
use_video
(
'
B
'
)
self
.
assertTrue
(
self
.
video
.
is_poster_shown
)
self
.
video
.
click_on_poster
()
self
.
video
.
wait_for_video_bumper_render
()
self
.
assertIn
(
self
.
video
.
state
,
[
'
playing
'
,
'
buffering
'
,
'
finished
'
])
self
.
video
.
click_player_button
(
'
skip_bumper
'
)
# no autoplay here, maybe video is too small, so pause is not switched
self
.
video
.
wait_for_video_player_render
()
self
.
assertIn
(
self
.
video
.
state
,
[
'
playing
'
,
'
buffering
'
,
'
finished
'
])
self
.
video
.
use_video
(
'
A
'
)
execute_video_steps
([
'
A
'
])
# go to second sequential position
self
.
courseware_page
.
go_to_sequential_position
(
2
)
execute_video_steps
(
tab2_video_names
)
# go back to first sequential position
# we are again playing tab 1 videos to ensure that switching didn't broke some video functionality.
self
.
courseware_page
.
go_to_sequential_position
(
1
)
execute_video_steps
(
tab1_video_names
)
self
.
video
.
browser
.
refresh
()
execute_video_steps
(
tab1_video_names
)
@attr
(
shard
=
13
)
class
YouTubeHtml5VideoTest
(
VideoBaseTest
):
...
...
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