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

Change subject: QA: Make it clear in which browser test MEDIAWIKI_USER must be 
an admin
......................................................................


QA: Make it clear in which browser test MEDIAWIKI_USER must be an admin

Some tests only pass if the user running the tests is an admin and is able
to do certain actions. Using this tag allows browser test runs to exclude
these tests where needed.

Separate the tests that do not inside ui_links.feature

Change-Id: I7c02816eeb62d059ee73d525bcdca16f192edbd9
---
M tests/browser/features/pageactions_protected.feature
M tests/browser/features/ui_links.feature
2 files changed, 9 insertions(+), 4 deletions(-)

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



diff --git a/tests/browser/features/pageactions_protected.feature 
b/tests/browser/features/pageactions_protected.feature
index db71aee..ac46d02 100644
--- a/tests/browser/features/pageactions_protected.feature
+++ b/tests/browser/features/pageactions_protected.feature
@@ -1,4 +1,4 @@
-@chrome @en.m.wikipedia.beta.wmflabs.org @firefox
+@chrome @en.m.wikipedia.beta.wmflabs.org @firefox @adminuser
 Feature: Page actions menu when anonymous
 
   Background:
diff --git a/tests/browser/features/ui_links.feature 
b/tests/browser/features/ui_links.feature
index 25f9853..3036f81 100644
--- a/tests/browser/features/ui_links.feature
+++ b/tests/browser/features/ui_links.feature
@@ -11,12 +11,17 @@
 
   @smoke @integration
   Scenario: Check existence of important UI components on other pages.
-    Given the wiki has a terms of use
-      And the page "Selenium UI test" exists
+    Given the page "Selenium UI test" exists
       And I am on the "Selenium UI test" page
     Then I should see the link to the user page of the last editor
       And I should see the last modified bar history link
       And I should see the switch to desktop link
       And I should see the license link
-      And I should see a link to the terms of use
       And I should see a link to the privacy page
+
+  @smoke @integration @adminuser
+  Scenario: Check existence of important UI components on other pages.
+    Given the wiki has a terms of use
+      And the page "Selenium UI test" exists
+      And I am on the "Selenium UI test" page
+    Then I should see a link to the terms of use

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I7c02816eeb62d059ee73d525bcdca16f192edbd9
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <jrob...@wikimedia.org>
Gerrit-Reviewer: Bmansurov <bmansu...@wikimedia.org>
Gerrit-Reviewer: Jdlrobson <jrob...@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