jenkins-bot has submitted this change and it was merged.

Change subject: Browser test for the entry point of Content Translation
......................................................................


Browser test for the entry point of Content Translation

Change-Id: I482e2a61329cabcbbe701096d386f358b3e8ec0e
---
A tests/browser/features/special_content_translation_entry.feature
1 file changed, 39 insertions(+), 0 deletions(-)

Approvals:
  Amire80: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/tests/browser/features/special_content_translation_entry.feature 
b/tests/browser/features/special_content_translation_entry.feature
new file mode 100644
index 0000000..74c1efc
--- /dev/null
+++ b/tests/browser/features/special_content_translation_entry.feature
@@ -0,0 +1,39 @@
+Feature: New translation from interlanguage link
+
+  As a wiki editor
+  I can initiate a translation directly from the content page,
+  so that I can immediately discover how to contribute.
+
+  Design:
+  - http://pauginer.github.io/prototype-uls/#mies
+
+  These scenarios check the main entry point to the Special:ContentTranslation 
page.
+
+  Scenario: Anonymous user viewing a page that doesn't have a corresponding 
page in the target language
+    Given I am on the page "Luis Mies van der Rohe"
+      And I have reset my preferences
+      And I set "Nederlands" as the interface language
+    Then I don't see any red link in the list of the interlanguage links
+
+  Scenario: Logged in user viewing a page that has a corresponding page in the 
target language
+    Given I am logged in
+      And I have reset my preferences
+      And I set "Nederlands" as the interface language
+    When I am on the page "Kolkata"
+    Then I see a blue link to "Nederlands" in the list of the interlanguage 
links
+      And I don't see any red link in the list of the interlanguage links
+
+  Scenario: Logged in user viewing a page that doesn't have a corresponding 
page in the target language
+    Given I am logged in
+      And I have reset my preferences
+      And I set "Nederlands" as the interface language
+    When I am on the page "Luis Mies van der Rohe"
+    Then I see a red link to "Nederlands" in the list of the interlanguage 
links
+
+  Scenario: Clicking on the red link triggers a dialogue
+    Given I am logged in
+      And I have reset my preferences
+      And I set "Nederlands" as the interface language
+      And I am on the page "Luis Miew van der Rohe"
+    When I click on the red link to "Nederlands" in the list of the 
interlanguage links
+    Then I see a "New Page" dialog

-- 
To view, visit https://gerrit.wikimedia.org/r/116949
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I482e2a61329cabcbbe701096d386f358b3e8ec0e
Gerrit-PatchSet: 8
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: SuchetaG <sucheta.ghos...@gmail.com>
Gerrit-Reviewer: Amire80 <amir.ahar...@mail.huji.ac.il>
Gerrit-Reviewer: Arrbee <run...@gmail.com>
Gerrit-Reviewer: Pginer <pgi...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to