'Scenario: Quality button works correctly.
Given the course has a Video component in "Youtube" mode
And I click video button "play"
And I see video button "quality" is inactive
And I click video button "quality"
Then I see video button "quality" is active'

@skip_if_browser('firefox')
def test_quality_button_works_correctly(self):

    self.navigate_to_video()
    self.video.click_player_button('play')
    self.video.wait_for((lambda : self.video.is_quality_button_visible), 'waiting    for    quality    button    to    appear')
    self.assertFalse(self.video.is_quality_button_active)
    self.video.click_player_button('quality')
    self.video.wait_for((lambda : self.video.is_quality_button_active), 'waiting    for    quality    button    activation')
