Integration tests for live preview of display language

Bug: 53255

Change-Id: I1506ddd0ef68217ac114bdf4c29c62cd071b1900
This commit is contained in:
Kartik Mistry
2013-09-24 21:53:11 +05:30
committed by Amir E. Aharoni
parent 7706d97c8a
commit 039c91d1d5
6 changed files with 78 additions and 3 deletions

View File

@@ -0,0 +1,46 @@
@login @reset-preferences-after @en.wikipedia.beta.wmflabs.org @commons.wikimedia.beta.wmflabs.org
Feature: Live preview of display language changes
Background:
Given I am logged in
And I set "English" as the interface language
And I am on a page with interlanguage links
Scenario: Display language change is previewed immediately
Given I open "Language" panel of language settings
And I click the button with the ellipsis
And in the language filter I type hi
And I click on the link to select Hindi
Then I should see the text in the language panel in Hindi
Scenario: Live preview of display language changes can be reverted on cancel
Given I open "Language" panel of language settings
And I select a language different than English for display language
When I click Cancel
And I open "Language" panel of language settings
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 with the X button
Given I open "Language" panel of language settings
And I select a language different than English for display language
When I click X
And I open "Language" panel of language settings
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
Given I open "Language" panel of language settings
And I select a language different than English for display language
And I switch to "Input" panel of language settings
When I click Cancel
And I open "Language" panel of language settings
Then I should see the text in the language panel in English
Scenario: Font setting is reset after pressing "Cancel"
Given I open "Fonts" panel of language settings
When I set English font to OpenDyslexic
And I apply the changes
And I open "Fonts" panel of language settings
And I set English font to System
And I click Cancel
When I open "Fonts" panel of language settings
Then the selected content font must be OpenDyslexic