Refactor another live preview scenario

But left it disabled because of bug 57967

Bug: 57967
Change-Id: I7b1543f526eac93c9a0200731a722332a7410b06
This commit is contained in:
Niklas Laxström
2013-12-04 12:21:40 +02:00
parent cdb21c9c49
commit b0efed428c
3 changed files with 10 additions and 7 deletions

View File

@@ -32,12 +32,15 @@ Feature: Live preview of display language changes
And I open Display panel of language settings And I open Display panel of language settings
Then I should see the text in the language panel in English Then I should see the text in the language panel in English
Scenario: Live preview of display language changes can be reverted on closing the dialog on cancel from a different section # https://bugzilla.wikimedia.org/57967
Given I open "Language" panel of language settings # @commons.wikimedia.beta.wmflabs.org
Scenario: Live preview of display language changes can be reverted on closing the dialog on cancel from a different panel
Given I open the Universal Language Selector
And I open Display panel of language settings
And I select a language different than English for display language And I select a language different than English for display language
And I switch to "Input" panel of language settings And I switch to Input panel of language settings
When I click Cancel When I click Cancel
And I open "Language" panel of language settings And I open Display panel of language settings
Then I should see the text in the language panel in English Then I should see the text in the language panel in English
Scenario: Font setting is reset after pressing "Cancel" Scenario: Font setting is reset after pressing "Cancel"

View File

@@ -46,7 +46,7 @@ Feature: Settings panel
When I open "Language" panel of language settings When I open "Language" panel of language settings
And I click the button with the ellipsis And I click the button with the ellipsis
And I use the panel to change my interface language to "German" And I use the panel to change my interface language to "German"
And I switch to "Input" panel of language settings And I switch to Input panel of language settings
And I click X And I click X
And I open "Language" panel of language settings And I open "Language" panel of language settings
Then the panel is in English Then the panel is in English

View File

@@ -68,8 +68,8 @@ Then(/^the panel is in English/) do
on(PanelPage).panel_language_element.text.should == "Language" on(PanelPage).panel_language_element.text.should == "Language"
end end
When(/^I switch to "Input" panel of language settings/) do When(/^I switch to Input panel of language settings/) do
on(PanelPage).panel_input_element.when_visible.click on(PanelPage).panel_side_input_element.click
end end
Then(/^the language list of ULS should use Autonym font$/) do Then(/^the language list of ULS should use Autonym font$/) do