From 3159c949d39396a34fecaac0dc79e8dcfc67c34a Mon Sep 17 00:00:00 2001 From: Peter Fogg Date: Tue, 11 Jun 2013 15:29:16 -0400 Subject: [PATCH] Update acceptance tests for captions to use metadata settings editor. --- cms/djangoapps/contentstore/features/video.feature | 5 +++++ cms/djangoapps/contentstore/features/video.py | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/cms/djangoapps/contentstore/features/video.feature b/cms/djangoapps/contentstore/features/video.feature index 0129732d30..e3aa9080b1 100644 --- a/cms/djangoapps/contentstore/features/video.feature +++ b/cms/djangoapps/contentstore/features/video.feature @@ -13,3 +13,8 @@ Feature: Video Component Given I have created a Video component And I have hidden 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 diff --git a/cms/djangoapps/contentstore/features/video.py b/cms/djangoapps/contentstore/features/video.py index fd8624999e..33514b0b9e 100644 --- a/cms/djangoapps/contentstore/features/video.py +++ b/cms/djangoapps/contentstore/features/video.py @@ -19,10 +19,17 @@ def video_takes_a_single_click(step): @step('I have hidden captions') -def set_show_captions_false(step): +def hide_captions(step): world.css_click('a.hide-subtitles') @step('when I view the video it does not show the captions') def does_not_show_captions(step): 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')