Commit 3159c949 by Peter Fogg

Update acceptance tests for captions to use metadata settings editor.

parent dbb12759
...@@ -13,3 +13,8 @@ Feature: Video Component ...@@ -13,3 +13,8 @@ Feature: Video Component
Given I have created a Video component Given I have created a Video component
And I have hidden captions And I have hidden captions
Then when I view the video it does not show the captions Then when I view the video it does not show the captions
Scenario: something
Given I have created a Video component
And I have set "show captions" to false
Then when I view the video it does not show the captions
...@@ -19,10 +19,17 @@ def video_takes_a_single_click(step): ...@@ -19,10 +19,17 @@ def video_takes_a_single_click(step):
@step('I have hidden captions') @step('I have hidden captions')
def set_show_captions_false(step): def hide_captions(step):
world.css_click('a.hide-subtitles') world.css_click('a.hide-subtitles')
@step('when I view the video it does not show the captions') @step('when I view the video it does not show the captions')
def does_not_show_captions(step): def does_not_show_captions(step):
assert world.css_find('.video')[0].has_class('closed') assert world.css_find('.video')[0].has_class('closed')
@step('I have set "show captions" to false')
def set_show_captions_false(step):
world.css_click('a.edit-button')
world.browser.select('Show Captions', 'False')
world.css_click('a.save-button')
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