Cmcmahon has submitted this change and it was merged.

Change subject: Feature: Guided Tour, Scenario: Check that "Looking for more to 
do" guider does appear when page is changed and saved
......................................................................


Feature: Guided Tour, Scenario: Check that "Looking for more to do" guider does 
appear when page is changed and saved

Change-Id: I7917733739e0db7f7b6256177e9885a8ae5e78c7
---
M features/guided_tour.feature
M features/step_definitions/guided_tour_steps.rb
M features/support/pages/tour_page.rb
3 files changed, 17 insertions(+), 0 deletions(-)

Approvals:
  Cmcmahon: Verified; Looks good to me, approved



diff --git a/features/guided_tour.feature b/features/guided_tour.feature
index 7e7b850..425ab9e 100644
--- a/features/guided_tour.feature
+++ b/features/guided_tour.feature
@@ -24,3 +24,8 @@
     Given I am on a page with You're almost finished guider
     When I save the page without changing anything
     Then Looking for more to do guider should not appear
+
+  Scenario: Check that "Looking for more to do" guider does appear when page 
is changed and saved
+    Given I am on a page with You're almost finished guider
+    When I save the page is changed and saved
+    Then Looking for more to do guider should appear
diff --git a/features/step_definitions/guided_tour_steps.rb 
b/features/step_definitions/guided_tour_steps.rb
index ec2821e..af81cd5 100644
--- a/features/step_definitions/guided_tour_steps.rb
+++ b/features/step_definitions/guided_tour_steps.rb
@@ -57,3 +57,14 @@
 Then /^Looking for more to do guider should not appear$/ do
   on(TourPage).guider5_element.should_not be_visible
 end
+
+When /^I save the page is changed and saved$/ do
+  on(TourPage) do |page|
+    page.text_element.send_keys "guided tour test"
+    page.submit_changes
+  end
+end
+
+Then /^Looking for more to do guider should appear$/ do
+  on(TourPage).guider5_element.should be_visible
+end
diff --git a/features/support/pages/tour_page.rb 
b/features/support/pages/tour_page.rb
index ac68b70..51f2714 100644
--- a/features/support/pages/tour_page.rb
+++ b/features/support/pages/tour_page.rb
@@ -10,4 +10,5 @@
   a(:okay, text: 'Okay')
   button(:preview, id: 'wpPreview')
   button(:submit_changes, id: "wpSave")
+  text_field(:text, id: "wpTextbox1")
 end

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I7917733739e0db7f7b6256177e9885a8ae5e78c7
Gerrit-PatchSet: 1
Gerrit-Project: qa/browsertests
Gerrit-Branch: master
Gerrit-Owner: Zfilipin <[email protected]>
Gerrit-Reviewer: Cmcmahon <[email protected]>
Gerrit-Reviewer: Mattflaschen <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to