Commit 98fa4571 by Jesse Zoldak

Merge pull request #5091 from edx/ammar/fix-video-transcripts-test

Fix Video Transcript Test
parents a741e6a3 20d62213
......@@ -517,10 +517,11 @@ class VideoComponentPage(VideoPage):
str: status/error message
"""
if self.q(css=CLASS_SELECTORS[message_type]).visible:
return self.q(css=CLASS_SELECTORS[message_type]).text[0]
else:
return ''
if message_type == 'status':
self.wait_for_element_visibility(CLASS_SELECTORS[message_type],
'{} message is Visible'.format(message_type.title()))
return self.q(css=CLASS_SELECTORS[message_type]).text[0]
def url_field_status(self, *field_numbers):
"""
......
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