Refactoring tests

Collaboratively

Change-Id: I6c5417a0681f9bb8596c36600a569df2ddd7bf9e
This commit is contained in:
Niklas Laxström
2013-09-16 15:54:09 -07:00
parent 6338d73c0e
commit f43a00d5b8
5 changed files with 32 additions and 11 deletions

View File

@@ -1,21 +1,23 @@
@login @reset-preferences-after @en.wikipedia.beta.wmflabs.org @commons.wikimedia.beta.wmflabs.org
Feature: Persistent settings
This assumes wiki content language is English.
Background:
Given I am logged in
And I set "German" as the interface language
And the content language is "English"
And I set interface language that is different from content language and has a font
Scenario: Interface font sticks to another page
When I open "Fonts" panel of language settings
And I select "OpenDyslexic" font for the interface language for the live preview
And I select a font for the interface language
And I apply the changes
And I visit a random page
Then the selected interface font must be "OpenDyslexic"
And I open "Fonts" panel of language settings
Then the selected interface font must be what I previously selected
Scenario: Discarding a live preview of a font keeps the previous font
When I open "Fonts" panel of language settings
And I select "OpenDyslexic" font for the interface language for the live preview
And I select a font for the interface language
And I close the panel to discard the changes
And I visit a random page
Then the selected interface font must be "system"