SuchetaG has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/117173

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

Browser test for the dialog in the entry point of Content Translation

Change-Id: Icdd41392ef621ef7ed16edecc7affc3648db805a
---
A tests/browser/features/dialog.feature
1 file changed, 31 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation 
refs/changes/73/117173/1

diff --git a/tests/browser/features/dialog.feature 
b/tests/browser/features/dialog.feature
new file mode 100644
index 0000000..5ccd344
--- /dev/null
+++ b/tests/browser/features/dialog.feature
@@ -0,0 +1,31 @@
+Feature: "New Page" dialog
+
+  As a wiki editor
+  I can see a dialog when I click on the red link in the list of interlanguage 
links on the content page,
+  so that I can see the option to create the translation of the content from 
scratch
+
+  Design:
+  - http://pauginer.github.io/prototype-uls/#mies
+
+  Backgroud:
+    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: "New Page" dialog gives option to start a translation from scratch
+     When I click on the red link to "Nederlands" in the list of the 
interlanguage links
+     Then I see a "New Page" dialog
+      And I see a input box to write the title of the content in target 
language in the dialog
+      And I see a "Create from scratch" button in the dialog
+      And I see a "Translate from English" button in the dialog
+
+  Scenario: Clicking on the "Create from scratch" button takes user to 
Special:ContentTranslation
+    Given I clicked on the red link to "Nederlands" in the list of the 
interlanguage links
+      And I see a "New Page" dialog
+      And I see a input box to write the title of the content in target 
language in the dialog
+      And I see a "Create from scratch" button in the dialog
+    When I enter the title of the content in the target language
+      And I click the "Create from scratch" button in the dialog
+    Then I see the page Special:ContentTranslation

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icdd41392ef621ef7ed16edecc7affc3648db805a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: SuchetaG <sucheta.ghos...@gmail.com>

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

Reply via email to