Zfilipin has submitted this change and it was merged.

Change subject: Scenario: The cog icon is visible in the sidebar on an article
......................................................................


Scenario: The cog icon is visible in the sidebar on an article

Change-Id: Ia534c7839b0d8716472e80e4b5c6f96cb8e70453
---
M features/step_definitions/uls_steps.rb
M features/support/pages/random_page.rb
M features/uls.feature
3 files changed, 9 insertions(+), 0 deletions(-)

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



diff --git a/features/step_definitions/uls_steps.rb 
b/features/step_definitions/uls_steps.rb
index eec8c2e..5a8dbab 100644
--- a/features/step_definitions/uls_steps.rb
+++ b/features/step_definitions/uls_steps.rb
@@ -5,3 +5,7 @@
 Then /^I should see the Language selector$/ do
   on(RandomPage).search_element.should exist
 end
+
+Then /^I should see a cog icon near the 'Languages' header$/ do
+    on(RandomPage).cog_element.should exist
+end
diff --git a/features/support/pages/random_page.rb 
b/features/support/pages/random_page.rb
index d4ae3f8..4f97b45 100644
--- a/features/support/pages/random_page.rb
+++ b/features/support/pages/random_page.rb
@@ -4,6 +4,7 @@
   include URL
   page_url URL.url('Special:Random')
 
+  span(:cog, title: 'Language settings')
   a(:create_a_book, text: 'Create a book')
   li(:main_page, id: 'n-mainpage-description')
   a(:download_as_pdf, text: 'Download as PDF')
diff --git a/features/uls.feature b/features/uls.feature
index ae8f8da..f9bfe39 100644
--- a/features/uls.feature
+++ b/features/uls.feature
@@ -5,3 +5,7 @@
     Given I visit a random page
     When I click language selector trigger element
     Then I should see the Language selector
+
+  Scenario: The cog icon is visible in the sidebar on an article
+    Given I am at random page
+    Then I should see a cog icon near the 'Languages' header

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia534c7839b0d8716472e80e4b5c6f96cb8e70453
Gerrit-PatchSet: 6
Gerrit-Project: qa/browsertests
Gerrit-Branch: master
Gerrit-Owner: Rachel99 <[email protected]>
Gerrit-Reviewer: Cmcmahon <[email protected]>
Gerrit-Reviewer: Zfilipin <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to