As a course author, I want to be able to create video components.
Feature: CMSTranscripts
As a course author, I want to be able to create video components
# For transcripts acceptance tests there are 3 available caption
# files. They can be used to test various transcripts features. Two of
...
...
@@ -72,7 +72,7 @@ Feature: CMS.Transcripts
And I remove "t_not_exist" transcripts id from store
And I enter a "http://youtu.be/t_not_exist"sourcetofieldnumber1
Then I see status message "not found"
And I see value "" in the field "HTML5 Transcript"
And I see value "" in the field "Transcript (primary)"
# Import: w/o local but with server subs
And I remove "t__eq_exist" transcripts id from store
...
...
@@ -83,7 +83,7 @@ Feature: CMS.Transcripts
Then I see status message "found"
And I see button "upload_new_timed_transcripts"
And I see button "download_to_edit"
And I see value "t__eq_exist" in the field "HTML5 Transcript"
And I see value "t__eq_exist" in the field "Transcript (primary)"
#4
Scenario:Youtube id only:check"Found"state
...
...
@@ -92,7 +92,7 @@ Feature: CMS.Transcripts
And I enter a "http://youtu.be/t_not_exist"sourcetofieldnumber1
Then I see status message "found"
And I see value "t_not_exist" in the field "HTML5 Transcript"
And I see value "t_not_exist" in the field "Transcript (primary)"
#5
Scenario:Youtube id only:check"Found"statewhenusersetsyoutube_idwithlocalandserversubsandtheyareequal
...
...
@@ -102,7 +102,7 @@ Feature: CMS.Transcripts
And I enter a "http://youtu.be/t__eq_exist"sourcetofieldnumber1
And I see status message "found"
And I see value "t__eq_exist" in the field "HTML5 Transcript"
And I see value "t__eq_exist" in the field "Transcript (primary)"
#6
Scenario:Youtube id only:check"Found"statewhenusersetsyoutube_idwithlocalandserversubsandtheyarenotequal
...
...
@@ -114,7 +114,7 @@ Feature: CMS.Transcripts
And I see button "replace"
And I click transcript button "replace"
And I see status message "found"
And I see value "t_neq_exist" in the field "HTML5 Transcript"
And I see value "t_neq_exist" in the field "Transcript (primary)"
#7
Scenario:html5 source only:check"NotFound"state
...
...
@@ -123,7 +123,7 @@ Feature: CMS.Transcripts
And I enter a "t_not_exist.mp4" source to field number 1
Then I see status message "not found"
And I see value "" in the field "HTML5 Transcript"
And I see value "" in the field "Transcript (primary)"
#8
Scenario:html5 source only:check"Found"state
...
...
@@ -132,7 +132,7 @@ Feature: CMS.Transcripts
And I enter a "t_not_exist.mp4" source to field number 1
Then I see status message "found"
And I see value "t_not_exist" in the field "HTML5 Transcript"
And I see value "t_not_exist" in the field "Transcript (primary)"
#9
Scenario: User sets youtube_id w/o server but with local subs and one html5 link w/o subs
...
...
@@ -144,7 +144,7 @@ Feature: CMS.Transcripts
And I enter a "test_video_name.mp4" source to field number 2
Then I see status message "found"
And I see value "t_not_exist" in the field "HTML5 Transcript"
And I see value "t_not_exist" in the field "Transcript (primary)"
# Disabled 1/29/14 due to flakiness observed in master
#10
...
...
@@ -160,7 +160,7 @@ Feature: CMS.Transcripts
#
# And I enter a "t_not_exist.mp4" source to field number 2
# Then I see status message "found"
# And I see value "t__eq_exist" in the field "HTML5 Transcript"
# And I see value "t__eq_exist" in the field "Transcript (primary)"
#11
Scenario: User sets youtube_id w/o local but with server subs and one html5 link w/o transcripts w/o import action, then another one html5 link w/o transcripts
...
...
@@ -338,7 +338,7 @@ Feature: CMS.Transcripts
Then I see status message "uploaded_successfully"
And I see button "download_to_edit"
And I see button "upload_new_timed_transcripts"
And I see value "t__eq_exist" in the field "HTML5 Transcript"
And I see value "t__eq_exist" in the field "Transcript (primary)"
And I enter a "http://youtu.be/t_not_exist"sourcetofieldnumber2
Then I see status message "found"
...
...
@@ -359,7 +359,7 @@ Feature: CMS.Transcripts
And I see button "upload_new_timed_transcripts"
And I upload the transcripts file "test_transcripts.srt"
Then I see status message "uploaded_successfully"
And I see value "test_transcripts" in the field "HTML5 Transcript"
And I see value "test_transcripts" in the field "Transcript (primary)"
And I enter a "t_not_exist.webm" source to field number 2
Then I see status message "replace"
...
...
@@ -367,7 +367,7 @@ Feature: CMS.Transcripts
And I see choose button "test_transcripts.mp4" number 1
And I see choose button "t_not_exist.webm" number 2
And I click transcript button "choose" number 2
And I see value "test_transcripts|t_not_exist" in the field "HTML5 Transcript"
And I see value "test_transcripts|t_not_exist" in the field "Transcript (primary)"
#21
Scenario:Work with 1 field only:EnterHTML5sourcewithtranscripts-save->changeittoanotheroneHTML5sourcew/otranscripts-clickonuseexisting->changeittoanotheroneHTML5sourcew/otranscripts-clickonuseexisting
...
...
@@ -378,7 +378,7 @@ Feature: CMS.Transcripts
Then I see status message "found"
And I see button "download_to_edit"
And I see button "upload_new_timed_transcripts"
And I see value "t_not_exist" in the field "HTML5 Transcript"
And I see value "t_not_exist" in the field "Transcript (primary)"
And I save changes
And I edit the component
...
...
@@ -387,13 +387,13 @@ Feature: CMS.Transcripts
Then I see status message "use existing"
And I see button "use_existing"
And I click transcript button "use_existing"
And I see value "video_name_2" in the field "HTML5 Transcript"
And I see value "video_name_2" in the field "Transcript (primary)"
And I enter a "video_name_3.mp4" source to field number 1
Then I see status message "use existing"
And I see button "use_existing"
And I click transcript button "use_existing"
And I see value "video_name_3" in the field "HTML5 Transcript"
And I see value "video_name_3" in the field "Transcript (primary)"
#22
Scenario:Work with 1 field only:EnterHTML5sourcewithtranscripts-save->changeittoanotheroneHTML5sourcew/otranscripts-clickonuseexisting->changeittoanotheroneHTML5sourcew/otranscripts-donotclickonuseexisting->changeittoanotheroneHTML5sourcew/otranscripts-clickonuseexisting
...
...
@@ -404,7 +404,7 @@ Feature: CMS.Transcripts
Then I see status message "found"
And I see button "download_to_edit"
And I see button "upload_new_timed_transcripts"
And I see value "t_not_exist" in the field "HTML5 Transcript"
And I see value "t_not_exist" in the field "Transcript (primary)"
And I save changes
And I edit the component
...
...
@@ -413,7 +413,7 @@ Feature: CMS.Transcripts
Then I see status message "use existing"
And I see button "use_existing"
And I click transcript button "use_existing"
And I see value "video_name_2" in the field "HTML5 Transcript"
And I see value "video_name_2" in the field "Transcript (primary)"
And I enter a "video_name_3.mp4" source to field number 1
Then I see status message "use existing"
...
...
@@ -423,7 +423,7 @@ Feature: CMS.Transcripts
Then I see status message "use existing"
And I see button "use_existing"
And I click transcript button "use_existing"
And I see value "video_name_4" in the field "HTML5 Transcript"
And I see value "video_name_4" in the field "Transcript (primary)"
#23
Scenario:Work with 2 fields:EnterHTML5sourcewithtranscripts-save->changeittoanotheroneHTML5sourcew/otranscripts-donotclickonuseexisting->addanotheroneHTML5sourcew/otranscripts-clickonuseexisting
...
...
@@ -446,7 +446,7 @@ Feature: CMS.Transcripts
Then I see status message "use existing"
And I see button "use_existing"
And I click transcript button "use_existing"
And I see value "video_name_2|video_name_3" in the field "HTML5 Transcript"
And I see value "video_name_2|video_name_3" in the field "Transcript (primary)"
#24 Uploading subtitles with different file name than file
Scenario: File name and name of subs are different
...
...
@@ -457,7 +457,7 @@ Feature: CMS.Transcripts
And I see status message "not found"
And I upload the transcripts file "test_transcripts.srt"
Then I see status message "uploaded_successfully"
And I see value "video_name_1" in the field "HTML5 Transcript"
And I see value "video_name_1" in the field "Transcript (primary)"
And I save changes
Then when I view the video it does show the captions
...
...
@@ -488,14 +488,14 @@ Feature: CMS.Transcripts
And I see status message "not found"
And I upload the transcripts file "test_transcripts.srt"
Then I see status message "uploaded_successfully"
And I see value "video_name_1|video_name_2" in the field "HTML5 Transcript"
And I see value "video_name_1|video_name_2" in the field "Transcript (primary)"
And I clear field number 1
Then I see status message "found"
And I see value "video_name_2" in the field "HTML5 Transcript"
And I see value "video_name_2" in the field "Transcript (primary)"
#27
Scenario: Upload button for single youtube id.
Scenario: Upload button for single youtube id
Given I have created a Video component
And I edit the component
...
...
@@ -512,7 +512,7 @@ Feature: CMS.Transcripts
Then I see status message "found"
#28
Scenario: Upload button for youtube id with html5 ids.
Scenario: Upload button for youtube id with html5 ids
Given I have created a Video component
And I edit the component
...
...
@@ -528,7 +528,7 @@ Feature: CMS.Transcripts
Then I see status message "uploaded_successfully"
And I clear field number 1
Then I see status message "found"
And I see value "video_name_1" in the field "HTML5 Transcript"
And I see value "video_name_1" in the field "Transcript (primary)"
And I save changes
Then when I view the video it does show the captions
...
...
@@ -544,14 +544,14 @@ Feature: CMS.Transcripts
Then I see status message "not found"
And I open tab "Advanced"
And I set value "t_not_exist" to the field "HTML5 Transcript"
And I set value "t_not_exist" to the field "Transcript (primary)"
And I save changes
Then when I view the video it does show the captions
And I edit the component
Then I see status message "found"
And I see value "video_name_1" in the field "HTML5 Transcript"
And I see value "video_name_1" in the field "Transcript (primary)"
#30
Scenario: Check non-ascii (chinise) transcripts
...
...
@@ -576,7 +576,7 @@ Feature: CMS.Transcripts
Then I see status message "not found"
And I open tab "Advanced"
And I set value "t_not_exist" to the field "HTML5 Transcript"
And I set value "t_not_exist" to the field "Transcript (primary)"
And I open tab "Basic"
Then I see status message "found"
...
...
@@ -585,18 +585,20 @@ Feature: CMS.Transcripts
And I edit the component
Then I see status message "found"
And I see value "video_name_1" in the field "HTML5 Transcript"
And I see value "video_name_1" in the field "Transcript (primary)"
#32
Scenario: After clearing Transcripts field in the Advanced tab "not found" message should be visible w/o saving
Given I have created a Video component with subtitles "t_not_exist"
Given I have created a Video component
And I edit the component
And I enter a "t_not_exist.mp4" source to field number 1
Then I see status message "found"
Then I see status message "not found"
And I upload the transcripts file "chinese_transcripts.srt"
Then I see status message "uploaded_successfully"
And I open tab "Advanced"
And I set value "" to the field "HTML5 Transcript"
And I set value "" to the field "Transcript (primary)"
And I open tab "Basic"
Then I see status message "not found"
...
...
@@ -605,21 +607,24 @@ Feature: CMS.Transcripts
And I edit the component
Then I see status message "not found"
And I see value "" in the field "HTML5 Transcript"
And I see value "" in the field "Transcript (primary)"
#33
Scenario: After clearing Transcripts field in the Advanced tab "not found" message should be visible with saving
Given I have created a Video component with subtitles "t_not_exist"
Given I have created a Video component
And I edit the component
And I enter a "t_not_exist.mp4" source to field number 1
Then I see status message "found"
Then I see status message "not found"
And I upload the transcripts file "chinese_transcripts.srt"
Then I see status message "uploaded_successfully"
And I save changes
Then I see "好 各位同学" text in the captions
And I edit the component
And I open tab "Advanced"
And I set value "" to the field "HTML5 Transcript"
And I set value "" to the field "Transcript (primary)"
And I open tab "Basic"
Then I see status message "not found"
...
...
@@ -628,7 +633,7 @@ Feature: CMS.Transcripts
And I edit the component
Then I see status message "not found"
And I see value "" in the field "HTML5 Transcript"
And I see value "" in the field "Transcript (primary)"
#34
Scenario: Video with existing subs - Advanced tab - change to another one subs - Basic tab - Found message - Save - see correct subs
...
...
@@ -647,7 +652,7 @@ Feature: CMS.Transcripts
And I edit the component
And I open tab "Advanced"
And I set value "t_not_exist" to the field "HTML5 Transcript"
And I set value "t_not_exist" to the field "Transcript (primary)"
And I open tab "Basic"
Then I see status message "found"
...
...
@@ -670,7 +675,7 @@ Feature: CMS.Transcripts
And I edit the component
And I open tab "Advanced"
And I revert the transcript field "HTML5 Transcript"
And I revert the transcript field "Transcript (primary)"
And I save changes
Then when I view the video it does not show the captions
...
...
@@ -686,7 +691,7 @@ Feature: CMS.Transcripts
And I see status message "not found"
And I upload the transcripts file "test_transcripts.srt"
Then I see status message "uploaded_successfully"
And I see value "video_name_1.1.2" in the field "HTML5 Transcript"
And I see value "video_name_1.1.2" in the field "Transcript (primary)"
And I save changes
Then when I view the video it does show the captions