Mgrover has uploaded a new change for review.

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


Change subject: QA:#1136 en betalabs has the edit icon unlocked and en wiki has 
the edit icon locked. Changed betalabs to match and then fixed the automation 
scripts
......................................................................

QA:#1136 en betalabs has the edit icon unlocked and en wiki has the edit icon 
locked. Changed betalabs to match and then fixed the automation scripts

Change-Id: I6886bb778c2f6f24b702823ef2eff26e3d0cbeab
---
M tests/acceptance/features/header_logged_in.feature
M tests/acceptance/features/step_definitions/header_logged_in_steps.rb
2 files changed, 5 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/45/81845/1

diff --git a/tests/acceptance/features/header_logged_in.feature 
b/tests/acceptance/features/header_logged_in.feature
index 59bf323..3d865bf 100644
--- a/tests/acceptance/features/header_logged_in.feature
+++ b/tests/acceptance/features/header_logged_in.feature
@@ -7,12 +7,11 @@
 
   Scenario: Edit mode
     When I click the enabled edit icon
-    Then I can click Cancel
-
+    Then I receive the locked edit message You are not allowed to edit this 
page.
 
   Scenario: Uploading Image
     When I click on the upload icon
-    Then I receive the locked upload message No image is needed on this page.
+    Then I receive the locked upload message You do not have permission to add 
an image to this page.
 
   Scenario: Watchlist icon from article page
     When I click on watchlist icon
diff --git 
a/tests/acceptance/features/step_definitions/header_logged_in_steps.rb 
b/tests/acceptance/features/step_definitions/header_logged_in_steps.rb
index a6819f2..61db899 100644
--- a/tests/acceptance/features/step_definitions/header_logged_in_steps.rb
+++ b/tests/acceptance/features/step_definitions/header_logged_in_steps.rb
@@ -1,9 +1,9 @@
 Then /^I click the enabled edit icon$/ do
-  on(HomePage).edit_icon_enabled_element.when_present.click
+  on(HomePage).edit_icon_element.when_present.click
 end
 
-Then /^I can click Cancel$/ do
-  on(EditPage).edit_cancel_button_element.when_present.click
+Then /^I receive the locked edit message (.+)$/ do  |text|
+  on(HomePage).rl_notification_element.when_present.text.should match text
 end
 
 Then /^I receive the locked upload message (.+)$/ do |text|

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6886bb778c2f6f24b702823ef2eff26e3d0cbeab
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Mgrover <mgro...@wikimedia.org>

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

Reply via email to