Refactored scenario: Edit area fonts should not change on UI language change if the user preferences for edit area font are set

Started in a pairing session Amir and Željko, ended in session Niklas and Željko.

Change-Id: I30ef2b41cfdceda04818f16f06e0071c487b90b6
This commit is contained in:
Amir E. Aharoni
2013-10-31 18:54:46 +02:00
committed by Zfilipin
parent 967683c98e
commit b0d905a554
6 changed files with 43 additions and 38 deletions

View File

@@ -8,33 +8,21 @@ Feature: Font preferences respected in different languages
the edit area has the font according to the ULS webfont preferences.
Background:
# This is needed to reset the fonts for the relevant languages.
# There's no better way to reset ULS preferences.
Given I am logged in
When I open "Language" panel of language settings
And I click the button with the ellipsis
And I use the panel to change my interface language to "German"
And I open "Fonts" panel of language settings
# This is the System font
And I select "Systemschriftart" font for the content language for the live preview
And I select "Systemschriftart" font for the interface language for the live preview
And I open "Language" panel of language settings
And I click the button with the ellipsis
And I use the panel to change my interface language to "English"
And I apply the changes
And I set the editing fonts to "default"
And I have reset my preferences
@commons.wikimedia.beta.wmflabs.org
Scenario: Edit area fonts should not change on UI language change if the user preferences for edit area font are set
When I set the editing fonts to "monospace"
And I edit a page
And I set "Hindi" as the interface language
And I start editing a page
Then I should see the edit area text being displayed using "monospace" font
And I set the editing fonts to "default"
Scenario: Edit area should use the fonts selected by the user from ULS for a language
When I open "Fonts" panel of language settings
And I select "OpenDyslexic" font for the content language for the live preview
And I apply the changes
And I edit a page
And I start editing a page
Then I should see the edit area text being displayed using "OpenDyslexic" font
Scenario: Edit area should use the ULS selected fonts when content language has a ULS font selection
@@ -44,7 +32,7 @@ Feature: Font preferences respected in different languages
And I open "Fonts" panel of language settings
And I select "OpenDyslexic" font for the content language for the live preview
And I apply the changes
And I edit a page
And I start editing a page
Then I should see the edit area text being displayed using "OpenDyslexic" font
Scenario: Edit area should use the system default fonts when content language does not have any ULS font selection
@@ -52,9 +40,9 @@ Feature: Font preferences respected in different languages
And I click the button with the ellipsis
And I use the panel to change my interface language to "German"
And I apply the changes
And I edit a page
And I start editing a page
Then I should see the edit area text being displayed using "monospace" font
Scenario: Edit area should use browser's default Monospace font for languages that have a default monospace font (Latin, Cyrillic, Hebrew etc.)
When I edit a page
When I start editing a page
Then I should see the edit area text being displayed using "monospace" font