Commit 0dbb969b by Usman Khalid

Fixed video bumper tests.

TNL-2883
parent e3bd509a
...@@ -604,9 +604,6 @@ class VideoPage(PageObject): ...@@ -604,9 +604,6 @@ class VideoPage(PageObject):
button = self.q(css=button_selector).results[0] button = self.q(css=button_selector).results[0]
coord_y = button.location_once_scrolled_into_view['y']
self.browser.execute_script("window.scrollTo(0, {});".format(coord_y))
hover = ActionChains(self.browser).move_to_element(button) hover = ActionChains(self.browser).move_to_element(button)
hover.perform() hover.perform()
...@@ -617,7 +614,7 @@ class VideoPage(PageObject): ...@@ -617,7 +614,7 @@ class VideoPage(PageObject):
menu_items = self.q(css=menu_selector + ' a').results menu_items = self.q(css=menu_selector + ' a').results
for item in menu_items: for item in menu_items:
if item.get_attribute('data-value') == transcript_format: if item.get_attribute('data-value') == transcript_format:
item.click() ActionChains(self.browser).move_to_element(item).click().perform()
self.wait_for_ajax() self.wait_for_ajax()
break break
......
...@@ -183,7 +183,7 @@ class VideoBumperEventsTest(VideoEventsTestMixin): ...@@ -183,7 +183,7 @@ class VideoBumperEventsTest(VideoEventsTestMixin):
u'video_bumper': { u'video_bumper': {
u'value': { u'value': {
"transcripts": {}, "transcripts": {},
"video_id": "edx_video_id" "video_id": "video_001"
} }
} }
} }
......
...@@ -736,7 +736,7 @@ class YouTubeVideoTest(VideoBaseTest): ...@@ -736,7 +736,7 @@ class YouTubeVideoTest(VideoBaseTest):
u'video_bumper': { u'video_bumper': {
u'value': { u'value': {
"transcripts": {}, "transcripts": {},
"video_id": "edx_video_id" "video_id": "video_001"
} }
} }
} }
......
[
{
"pk": 1,
"model": "edxval.profile",
"fields": {
"profile_name": "desktop_mp4"
}
},
{
"pk": 2,
"model": "edxval.profile",
"fields": {
"profile_name": "desktop_webm"
}
},
{
"pk": 3,
"model": "edxval.profile",
"fields": {
"profile_name": "mobile_high"
}
},
{
"pk": 4,
"model": "edxval.profile",
"fields": {
"profile_name": "mobile_low"
}
},
{
"pk": 5,
"model": "edxval.profile",
"fields": {
"profile_name": "youtube"
}
},
{
"pk": 1,
"model": "edxval.video",
"fields": {
"duration": 20.6,
"status": "File Complete",
"edx_video_id": "video_001",
"client_video_id": "Demo",
"created": "2015-07-30T10:14:50Z"
}
},
{
"pk": 1,
"model": "edxval.encodedvideo",
"fields": {
"profile": 3,
"created": "2015-07-30T10:14:50Z",
"url": "http://localhost:8777/intro.mp4",
"modified": "2015-07-30T10:14:50Z",
"video": 1,
"file_size": 15188012,
"bitrate": 672
}
},
{
"pk": 2,
"model": "edxval.encodedvideo",
"fields": {
"profile": 4,
"created": "2015-07-30T10:14:50Z",
"url": "http://localhost:8777/intro.mp4",
"modified": "2015-07-30T10:14:50Z",
"video": 1,
"file_size": 6185643,
"bitrate": 273
}
},
{
"pk": 3,
"model": "edxval.encodedvideo",
"fields": {
"profile": 1,
"created": "2015-07-30T10:14:50Z",
"url": "http://localhost:8777/intro.mp4",
"modified": "2015-07-30T10:14:50Z",
"video": 1,
"file_size": 56933999,
"bitrate": 2521
}
},
{
"pk": 4,
"model": "edxval.encodedvideo",
"fields": {
"profile": 2,
"created": "2015-07-30T10:14:50Z",
"url": "http://localhost:8777/intro.webm",
"modified": "2015-07-30T10:14:50Z",
"video": 1,
"file_size": 24415064,
"bitrate": 1081
}
},
{
"pk": 5,
"model": "edxval.encodedvideo",
"fields": {
"profile": 5,
"created": "2015-07-30T10:14:50Z",
"url": "zeYD3qMxKrI",
"modified": "2015-07-30T10:14:50Z",
"video": 1,
"file_size": 0,
"bitrate": 0
}
}
]
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment