Cmcmahon has uploaded a new change for review.

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


Change subject: forgot to remove unnecessary commented lines
......................................................................

forgot to remove unnecessary commented lines

Change-Id: I9f7b8956817bf4fbc6bb10becccd30ba95107eec
---
M features/page.feature
M features/step_definitions/page_steps.rb
2 files changed, 15 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/qa/browsertests 
refs/changes/47/57747/1

diff --git a/features/page.feature b/features/page.feature
index d91a63a..6ec2a0c 100644
--- a/features/page.feature
+++ b/features/page.feature
@@ -41,6 +41,7 @@
       And I should see a Leave a redirect radio button
       And I should see a Watch source page radio button
 
+  @login
   Scenario: Move existing page
     Given I am logged in
     And I am starting a page to be moved to a new name
@@ -50,9 +51,5 @@
     Then I should be on a page that says Move succeeded
       And I should see the text A redirect has been created
       And I should have a link to the old page title and a link to the new 
page title
-
-  Scenario: Moved page checks
-    Given I moved a page successfully
-    When I open the new page URL
-      Then the page displays the new title
-      And the old page displays a redirect to the new page
+      And the the new page should have the correct text
+      And the old page should display a redirect to the new page
diff --git a/features/step_definitions/page_steps.rb 
b/features/step_definitions/page_steps.rb
index 8530f47..10f0a85 100644
--- a/features/step_definitions/page_steps.rb
+++ b/features/step_definitions/page_steps.rb
@@ -109,4 +109,16 @@
   @browser.text.should match /A redirect has been created/
 end
 
+Then(/^the the new page should have the correct text$/) do
+  
on(MovePage).old_page_link_element(@does_not_exist_page_name).when_present.click
+  @browser.text.should match /Redirect page/
+end
+
+Then(/^the old page should display a redirect to the new page$/) do
+  
on(MovePage).moved_page_link_element(@does_not_exist_page_name).when_present.click
+  @browser.text.should match /Moved/
+  @browser.text.should_not match /Redirect page/
+end
+
+
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9f7b8956817bf4fbc6bb10becccd30ba95107eec
Gerrit-PatchSet: 1
Gerrit-Project: qa/browsertests
Gerrit-Branch: master
Gerrit-Owner: Cmcmahon <cmcma...@wikimedia.org>

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

Reply via email to