Rachel99 has uploaded a new change for review.
https://gerrit.wikimedia.org/r/63137
Change subject: test for cog
......................................................................
test for cog
Change-Id: Ia534c7839b0d8716472e80e4b5c6f96cb8e70453
---
M features/step_definitions/universal_language_selector_steps.rb
M features/support/pages/random_page.rb
M features/uls.feature
3 files changed, 12 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/qa/browsertests
refs/changes/37/63137/1
diff --git a/features/step_definitions/universal_language_selector_steps.rb
b/features/step_definitions/universal_language_selector_steps.rb
index eec8c2e..cca5fd5 100644
--- a/features/step_definitions/universal_language_selector_steps.rb
+++ b/features/step_definitions/universal_language_selector_steps.rb
@@ -5,3 +5,9 @@
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 375a2f3..a55f85d 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')
li(:main_page, id: 'n-mainpage-description')
a(:download_as_pdf, text: 'Download as PDF')
a(:download_the_file, text: 'Download the file')
@@ -12,4 +13,5 @@
text_field(:search_input, id: 'searchInput')
button(:search_button, id: 'searchButton')
div(:input_method, class: 'imeselector imeselector-toggle')
+ span(cog, class: 'us3')
end
diff --git a/features/uls.feature b/features/uls.feature
index ae8f8da..b6a41c8 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
\ No newline at end of file
--
To view, visit https://gerrit.wikimedia.org/r/63137
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia534c7839b0d8716472e80e4b5c6f96cb8e70453
Gerrit-PatchSet: 1
Gerrit-Project: qa/browsertests
Gerrit-Branch: master
Gerrit-Owner: Rachel99 <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits