'Scenario: LMS displays an error message for HTML5 sources that are not supported by browser
Given the course has a Video component in "HTML5_Unsupported_Video" mode
When I view the Video component
Then and error message is shown
And the error message has the correct text'

def test_html5_video_rendering_with_unsupported_sources(self):

    self.metadata = self.metadata_for_mode('html5_unsupported_video')
    self.navigate_to_video_no_render()
    self.assertTrue(self.video.is_error_message_shown)
    correct_error_message_text = 'No    playable    video    sources    found.'
    self.assertIn(correct_error_message_text, self.video.error_message_text)
    self.assertFalse(self.video.is_spinner_shown)
