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