Cmcmahon has uploaded a new change for review.
https://gerrit.wikimedia.org/r/72746
Change subject: update test for new behavior re Bug 50992
......................................................................
update test for new behavior re Bug 50992
Change-Id: I7912fcf93298c5271223232c9d72e303b1f6cc52
---
M features/step_definitions/uls_cog_sidebar_user_steps.rb
M features/support/modules/interlanguage_module.rb
M features/uls_cog_sidebar_anon_user.feature
3 files changed, 7 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/qa/browsertests
refs/changes/46/72746/1
diff --git a/features/step_definitions/uls_cog_sidebar_user_steps.rb
b/features/step_definitions/uls_cog_sidebar_user_steps.rb
index 7cd370c..acbafbd 100644
--- a/features/step_definitions/uls_cog_sidebar_user_steps.rb
+++ b/features/step_definitions/uls_cog_sidebar_user_steps.rb
@@ -35,6 +35,10 @@
on(InterlanguagePage).cancel_element.click
end
+Then(/^I click Enable input$/) do
+ on(InterlanguagePage).enable_input_element.when_visible.click
+end
+
When(/^I click Fonts$/) do
on(InterlanguagePage).fonts_settings
end
@@ -68,7 +72,7 @@
end
Then(/^I can enable input methods$/) do
- on(InterlanguagePage).enable_input_methods_element.when_visible.should
be_visible
+ on(InterlanguagePage).enable_input_element.when_visible.should be_visible
end
Then(/^I can navigate back to Input Settings$/) do
diff --git a/features/support/modules/interlanguage_module.rb
b/features/support/modules/interlanguage_module.rb
index 23213cb..627e4c4 100644
--- a/features/support/modules/interlanguage_module.rb
+++ b/features/support/modules/interlanguage_module.rb
@@ -11,7 +11,7 @@
button(:default_language_button, class: 'button uls-language-button down')
button(:disable_input_methods, class: 'active green button
uls-input-toggle-button')
button(:ellipsis_button, class: 'uls-more-languages button')
- button(:enable_input_methods, class: 'active green button
uls-input-toggle-button')
+ button(:enable_input, class: 'active green button uls-input-toggle-button')
a(:english_link, text: 'English')
button(:fonts_button, id: 'uls-display-settings-fonts-tab')
button(:fonts_settings, id: 'uls-display-settings-fonts-tab')
diff --git a/features/uls_cog_sidebar_anon_user.feature
b/features/uls_cog_sidebar_anon_user.feature
index 48cfa48..5dfe618 100644
--- a/features/uls_cog_sidebar_anon_user.feature
+++ b/features/uls_cog_sidebar_anon_user.feature
@@ -58,6 +58,7 @@
Scenario: More languages
Given I navigate to the anonymous Language Settings panel
And I click Input
+ And I click Enable input
When I click the button with the ellipsis
Then I see Worldwide
And I see Language Search
--
To view, visit https://gerrit.wikimedia.org/r/72746
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7912fcf93298c5271223232c9d72e303b1f6cc52
Gerrit-PatchSet: 1
Gerrit-Project: qa/browsertests
Gerrit-Branch: master
Gerrit-Owner: Cmcmahon <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits