[MediaWiki-commits] [Gerrit] Add a steps file with all steps pending - change (mediawiki...ContentTranslation)
jenkins-bot has submitted this change and it was merged. Change subject: Add a steps file with all steps pending .. Add a steps file with all steps pending Change-Id: Ibcdbcfeede1969545169dc501459a6971f7efe9a --- M tests/browser/features/special_content_translation.feature A tests/browser/features/step_definitions/special_content_translation_steps.rb 2 files changed, 105 insertions(+), 10 deletions(-) Approvals: KartikMistry: Looks good to me, approved jenkins-bot: Verified diff --git a/tests/browser/features/special_content_translation.feature b/tests/browser/features/special_content_translation.feature index 901401a..01e9e10 100644 --- a/tests/browser/features/special_content_translation.feature +++ b/tests/browser/features/special_content_translation.feature @@ -11,33 +11,33 @@ These scenarios test the basic functionality of the Special:ContentTranslation page. Scenario: Anonymous user cannot use Content translation. -Given I am on the content translation page in an English wiki, translating the article "Bratislava" to Danish +Given I am on the content translation page in a wiki in English, translating the article "Bratislava" to Danish Then I see the message "You must be logged in to translate in this page." And I don't see a source column And I don't see a translation column - And I don't see a "Publish Translation" + And I don't see a "Publish Translation" button Scenario: Logged in user viewing the special page for translation. Given I am logged in - And I am on the content translation page in an English wiki, translating the article "Bratislava" to Danish + And I am on the content translation page in a wiki in English, translating the article "Bratislava" to Danish Then I see a source column with the content of the article "Bratislava" And the language code of the source column is "en" - And the direction of the source column is left-to-right + And the direction of the source column is "ltr" And I see the title "Bratislava" at the top of the source column And I see a language label saying "English" below the source column's title And I see a "view article" link that points to the page "Bratislava" on the same wiki And I see a translation column with an empty editing area - And the translation column's language code is "da" - And the translation column's direction is left-to-right - And I see an input box pre-filled with the text "Bratislava" above the writing area in the second column - And I see "dansk" below the translation column's title - And I see a translation information column at the top of the page + And the language code of the translation column is "da" + And the direction of the translation column is "ltr" + And I see an input box pre-filled with the text "Bratislava" above the editing area in the second column + And I see a language label saying "dansk" below the translation column's title + And I see a translation information column And I see a "Publish Translation" button at the top of the page And I see a translation progress bar at the top of the page Scenario: Writing some translation text and saving it Given I am logged in - And I am on the content translation page in an English wiki, translating the article "Bratislava" to Danish + And I am on the content translation page in a wiki in English, translating the article "Bratislava" to Danish When I write "Bratislava er hovedstad og største by i Slovakiet." in the editing area in the translation column And I press the "Publish Translation" button Then the page "User:TranslatorToDa/Bratislava" is displayed diff --git a/tests/browser/features/step_definitions/special_content_translation_steps.rb b/tests/browser/features/step_definitions/special_content_translation_steps.rb new file mode 100644 index 000..da628f3 --- /dev/null +++ b/tests/browser/features/step_definitions/special_content_translation_steps.rb @@ -0,0 +1,95 @@ +Given(/^I am on the content translation page in a wiki in (.+?), translating the article "(.+?)" to (.+)$/) do |source_language, article_name, target_language| + pending # express the regexp above with the code you wish you had +end + +When(/^I press the "Publish Translation" button$/) do + pending # express the regexp above with the code you wish you had +end + +When(/^I write "(.*?)" in the editing area in the translation column$/) do |translation| + pending # express the regexp above with the code you wish you had +end + +Then(/^I don't see a "Publish Translation" button$/) do + pending # express the regexp above with the code you wish you had +end + +Then(/^I don't see a source column$/) do + pending # express the regexp above with the code you wish you had +end + +
[MediaWiki-commits] [Gerrit] Add a steps file with all steps pending - change (mediawiki...ContentTranslation)
Amire80 has uploaded a new change for review. https://gerrit.wikimedia.org/r/106227 Change subject: Add a steps file with all steps pending .. Add a steps file with all steps pending Change-Id: Ibcdbcfeede1969545169dc501459a6971f7efe9a --- M tests/browser/features/special_content_translation.feature A tests/browser/features/step_definitions/special_content_translation_steps.rb 2 files changed, 105 insertions(+), 10 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation refs/changes/27/106227/1 diff --git a/tests/browser/features/special_content_translation.feature b/tests/browser/features/special_content_translation.feature index 901401a..01e9e10 100644 --- a/tests/browser/features/special_content_translation.feature +++ b/tests/browser/features/special_content_translation.feature @@ -11,33 +11,33 @@ These scenarios test the basic functionality of the Special:ContentTranslation page. Scenario: Anonymous user cannot use Content translation. -Given I am on the content translation page in an English wiki, translating the article "Bratislava" to Danish +Given I am on the content translation page in a wiki in English, translating the article "Bratislava" to Danish Then I see the message "You must be logged in to translate in this page." And I don't see a source column And I don't see a translation column - And I don't see a "Publish Translation" + And I don't see a "Publish Translation" button Scenario: Logged in user viewing the special page for translation. Given I am logged in - And I am on the content translation page in an English wiki, translating the article "Bratislava" to Danish + And I am on the content translation page in a wiki in English, translating the article "Bratislava" to Danish Then I see a source column with the content of the article "Bratislava" And the language code of the source column is "en" - And the direction of the source column is left-to-right + And the direction of the source column is "ltr" And I see the title "Bratislava" at the top of the source column And I see a language label saying "English" below the source column's title And I see a "view article" link that points to the page "Bratislava" on the same wiki And I see a translation column with an empty editing area - And the translation column's language code is "da" - And the translation column's direction is left-to-right - And I see an input box pre-filled with the text "Bratislava" above the writing area in the second column - And I see "dansk" below the translation column's title - And I see a translation information column at the top of the page + And the language code of the translation column is "da" + And the direction of the translation column is "ltr" + And I see an input box pre-filled with the text "Bratislava" above the editing area in the second column + And I see a language label saying "dansk" below the translation column's title + And I see a translation information column And I see a "Publish Translation" button at the top of the page And I see a translation progress bar at the top of the page Scenario: Writing some translation text and saving it Given I am logged in - And I am on the content translation page in an English wiki, translating the article "Bratislava" to Danish + And I am on the content translation page in a wiki in English, translating the article "Bratislava" to Danish When I write "Bratislava er hovedstad og største by i Slovakiet." in the editing area in the translation column And I press the "Publish Translation" button Then the page "User:TranslatorToDa/Bratislava" is displayed diff --git a/tests/browser/features/step_definitions/special_content_translation_steps.rb b/tests/browser/features/step_definitions/special_content_translation_steps.rb new file mode 100644 index 000..da628f3 --- /dev/null +++ b/tests/browser/features/step_definitions/special_content_translation_steps.rb @@ -0,0 +1,95 @@ +Given(/^I am on the content translation page in a wiki in (.+?), translating the article "(.+?)" to (.+)$/) do |source_language, article_name, target_language| + pending # express the regexp above with the code you wish you had +end + +When(/^I press the "Publish Translation" button$/) do + pending # express the regexp above with the code you wish you had +end + +When(/^I write "(.*?)" in the editing area in the translation column$/) do |translation| + pending # express the regexp above with the code you wish you had +end + +Then(/^I don't see a "Publish Translation" button$/) do + pending # express the regexp above with the code you wish you had +end + +Then(/^I don't see a source column$/) do + pending # ex