# first part of url will be substituted by mock_youtube_server address
# for t__eq_exist id server will respond with transcripts
And I enter a "http://youtu.be/t__eq_exist"sourcetofieldnumber1
Then I see status message "not found"
Then I see status message "not found on edx"
# t__eq_exist subs locally not presented at this moment
And I see button "import"
...
...
@@ -72,18 +72,18 @@ 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 "Transcript (primary)"
And I see value "" in the field "Default Timed Transcript"
# Import: w/o local but with server subs
And I remove "t__eq_exist" transcripts id from store
And I enter a "http://youtu.be/t__eq_exist"sourcetofieldnumber1
Then I see status message "not found"
Then I see status message "not found on edx"
And I see button "import"
And I click transcript button "import"
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 "Transcript (primary)"
And I see value "t__eq_exist" in the field "Default Timed Transcript"
#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 "Transcript (primary)"
And I see value "t_not_exist" in the field "Default Timed Transcript"
#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 "Transcript (primary)"
And I see value "t__eq_exist" in the field "Default Timed Transcript"
#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 "Transcript (primary)"
And I see value "t_neq_exist" in the field "Default Timed Transcript"
#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 "Transcript (primary)"
And I see value "" in the field "Default Timed Transcript"
#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 "Transcript (primary)"
And I see value "t_not_exist" in the field "Default Timed Transcript"
#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 "Transcript (primary)"
And I see value "t_not_exist" in the field "Default Timed Transcript"
# Disabled 1/29/14 due to flakiness observed in master
#10
...
...
@@ -153,14 +153,14 @@ Feature: CMS Transcripts
# And I edit the component
#
# And I enter a "http://youtu.be/t__eq_exist" source to field number 1
# Then I see status message "not found"
# Then I see status message "not found on edx"
# And I see button "import"
# And I click transcript button "import"
# Then I see status message "found"
#
# 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 "Transcript (primary)"
# And I see value "t__eq_exist" in the field "Default Timed Transcript"
#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
...
...
@@ -168,17 +168,17 @@ Feature: CMS Transcripts
And I edit the component
And I enter a "http://youtu.be/t__eq_exist"sourcetofieldnumber1
Then I see status message "not found"
Then I see status message "not found on edx"
And I see button "import"
And I see button "upload_new_timed_transcripts"
And I enter a "t_not_exist.mp4" source to field number 2
Then I see status message "not found"
Then I see status message "not found on edx"
And I see button "import"
And I see button "upload_new_timed_transcripts"
And I enter a "t_not_exist.webm" source to field number 3
Then I see status message "not found"
Then I see status message "not found on edx"
And I see button "import"
And I see button "upload_new_timed_transcripts"
...
...
@@ -205,7 +205,7 @@ Feature: CMS Transcripts
And I edit the component
And I enter a "http://youtu.be/t__eq_exist"sourcetofieldnumber1
Then I see status message "not found"
Then I see status message "not found on edx"
And I see button "import"
And I click transcript button "import"
Then I see status message "found"
...
...
@@ -247,17 +247,17 @@ Feature: CMS Transcripts
And I edit the component
And I enter a "http://youtu.be/t__eq_exist"sourcetofieldnumber1
Then I see status message "not found"
Then I see status message "not found on edx"
And I see button "import"
And I see button "upload_new_timed_transcripts"
And I enter a "t_not_exist.mp4" source to field number 2
Then I see status message "not found"
Then I see status message "not found on edx"
And I see button "import"
And I see button "upload_new_timed_transcripts"
And I enter a "t_neq_exist.webm" source to field number 3
Then I see status message "not found"
Then I see status message "not found on edx"
And I see button "import"
And I see button "upload_new_timed_transcripts"
...
...
@@ -267,17 +267,17 @@ Feature: CMS Transcripts
And I edit the component
And I enter a "http://youtu.be/t__eq_exist"sourcetofieldnumber1
Then I see status message "not found"
Then I see status message "not found on edx"
And I see button "import"
And I see button "upload_new_timed_transcripts"
And I enter a "t_neq_exist.mp4" source to field number 2
Then I see status message "not found"
Then I see status message "not found on edx"
And I see button "import"
And I see button "upload_new_timed_transcripts"
And I enter a "t_not_exist.webm" source to field number 3
Then I see status message "not found"
Then I see status message "not found on edx"
And I see button "import"
And I see button "upload_new_timed_transcripts"
...
...
@@ -287,7 +287,7 @@ Feature: CMS Transcripts
And I edit the component
And I enter a "http://youtu.be/t__eq_exist"sourcetofieldnumber1
Then I see status message "not found"
Then I see status message "not found on edx"
And I see button "import"
And I click transcript button "import"
Then I see status message "found"
...
...
@@ -309,7 +309,7 @@ Feature: CMS Transcripts
And I edit the component
And I enter a "http://youtu.be/t__eq_exist"sourcetofieldnumber1
Then I see status message "not found"
Then I see status message "not found on edx"
And I see button "import"
And I click transcript button "import"
Then I see status message "found"
...
...
@@ -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 "Transcript (primary)"
And I see value "t__eq_exist" in the field "Default Timed Transcript"
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 "uk_transcripts.srt"
Then I see status message "uploaded_successfully"
And I see value "uk_transcripts" in the field "Transcript (primary)"
And I see value "uk_transcripts" in the field "Default Timed Transcript"
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 "uk_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 "uk_transcripts|t_not_exist" in the field "Transcript (primary)"
And I see value "uk_transcripts|t_not_exist" in the field "Default Timed Transcript"
# Flaky test fails occasionally in master. https://edx-wiki.atlassian.net/browse/BLD-927
#21
...
...
@@ -379,7 +379,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 "Transcript (primary)"
# And I see value "t_not_exist" in the field "Default Timed Transcript"
#
# And I save changes
# And I edit the component
...
...
@@ -388,13 +388,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 "Transcript (primary)"
# And I see value "video_name_2" in the field "Default Timed Transcript"
#
# 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 "Transcript (primary)"
# And I see value "video_name_3" in the field "Default Timed Transcript"
#22
Scenario:Work with 1 field only:EnterHTML5sourcewithtranscripts-save->changeittoanotheroneHTML5sourcew/otranscripts-clickonuseexisting->changeittoanotheroneHTML5sourcew/otranscripts-donotclickonuseexisting->changeittoanotheroneHTML5sourcew/otranscripts-clickonuseexisting
...
...
@@ -405,7 +405,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 "Transcript (primary)"
And I see value "t_not_exist" in the field "Default Timed Transcript"
And I save changes
And I edit the component
...
...
@@ -414,7 +414,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 "Transcript (primary)"
And I see value "video_name_2" in the field "Default Timed Transcript"
And I enter a "video_name_3.mp4" source to field number 1
Then I see status message "use existing"
...
...
@@ -424,7 +424,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 "Transcript (primary)"
And I see value "video_name_4" in the field "Default Timed Transcript"
#23
Scenario:Work with 2 fields:EnterHTML5sourcewithtranscripts-save->changeittoanotheroneHTML5sourcew/otranscripts-donotclickonuseexisting->addanotheroneHTML5sourcew/otranscripts-clickonuseexisting
...
...
@@ -447,7 +447,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 "Transcript (primary)"
And I see value "video_name_2|video_name_3" in the field "Default Timed Transcript"
#24 Uploading subtitles with different file name than file
Scenario: File name and name of subs are different
...
...
@@ -458,7 +458,7 @@ Feature: CMS Transcripts
And I see status message "not found"
And I upload the transcripts file "uk_transcripts.srt"
Then I see status message "uploaded_successfully"
And I see value "video_name_1" in the field "Transcript (primary)"
And I see value "video_name_1" in the field "Default Timed Transcript"
And I save changes
Then when I view the video it does show the captions
...
...
@@ -489,11 +489,11 @@ Feature: CMS Transcripts
And I see status message "not found"
And I upload the transcripts file "uk_transcripts.srt"
Then I see status message "uploaded_successfully"
And I see value "video_name_1|video_name_2" in the field "Transcript (primary)"
And I see value "video_name_1|video_name_2" in the field "Default Timed Transcript"
And I clear field number 1
Then I see status message "found"
And I see value "video_name_2" in the field "Transcript (primary)"
And I see value "video_name_2" in the field "Default Timed Transcript"
#27
Scenario: Upload button for single youtube id
...
...
@@ -529,7 +529,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 "Transcript (primary)"
And I see value "video_name_1" in the field "Default Timed Transcript"
And I save changes
Then when I view the video it does show the captions
...
...
@@ -545,14 +545,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 "Transcript (primary)"
And I set value "t_not_exist" to the field "Default Timed Transcript"
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 "Transcript (primary)"
And I see value "video_name_1" in the field "Default Timed Transcript"
#30
Scenario: Check non-ascii (chinise) transcripts
...
...
@@ -577,7 +577,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 "Transcript (primary)"
And I set value "t_not_exist" to the field "Default Timed Transcript"
And I open tab "Basic"
Then I see status message "found"
...
...
@@ -586,7 +586,7 @@ Feature: CMS Transcripts
And I edit the component
Then I see status message "found"
And I see value "video_name_1" in the field "Transcript (primary)"
And I see value "video_name_1" in the field "Default Timed Transcript"
#32
Scenario: After clearing Transcripts field in the Advanced tab "not found" message should be visible w/o saving
...
...
@@ -599,7 +599,7 @@ Feature: CMS Transcripts
Then I see status message "uploaded_successfully"
And I open tab "Advanced"
And I set value "" to the field "Transcript (primary)"
And I set value "" to the field "Default Timed Transcript"
And I open tab "Basic"
Then I see status message "not found"
...
...
@@ -608,7 +608,7 @@ Feature: CMS Transcripts
And I edit the component
Then I see status message "not found"
And I see value "" in the field "Transcript (primary)"
And I see value "" in the field "Default Timed Transcript"
#33
Scenario: After clearing Transcripts field in the Advanced tab "not found" message should be visible with saving
...
...
@@ -625,7 +625,7 @@ Feature: CMS Transcripts
And I edit the component
And I open tab "Advanced"
And I set value "" to the field "Transcript (primary)"
And I set value "" to the field "Default Timed Transcript"
And I open tab "Basic"
Then I see status message "not found"
...
...
@@ -634,7 +634,7 @@ Feature: CMS Transcripts
And I edit the component
Then I see status message "not found"
And I see value "" in the field "Transcript (primary)"
And I see value "" in the field "Default Timed Transcript"
#34
Scenario: Video with existing subs - Advanced tab - change to another one subs - Basic tab - Found message - Save - see correct subs
...
...
@@ -653,7 +653,7 @@ Feature: CMS Transcripts
And I edit the component
And I open tab "Advanced"
And I set value "t_not_exist" to the field "Transcript (primary)"
And I set value "t_not_exist" to the field "Default Timed Transcript"
And I open tab "Basic"
Then I see status message "found"
...
...
@@ -676,7 +676,7 @@ Feature: CMS Transcripts
And I edit the component
And I open tab "Advanced"
And I revert the transcript field "Transcript (primary)"
And I revert the transcript field "Default Timed Transcript"
And I save changes
Then when I view the video it does not show the captions
...
...
@@ -692,7 +692,7 @@ Feature: CMS Transcripts
And I see status message "not found"
And I upload the transcripts file "uk_transcripts.srt"
Then I see status message "uploaded_successfully"
And I see value "video_name_1.1.2" in the field "Transcript (primary)"
And I see value "video_name_1.1.2" in the field "Default Timed Transcript"
And I save changes
Then when I view the video it does show the captions