Files
mediawiki-extensions-Univer…/tests/browser/features/autonym.feature
Santhosh Thottingal 27771fdeaf Restore enableWebfonts pref and remove uls-enable
This patch restores the enableWebfonts preference, stored inside
the uls-preferences blob. It existed as 'enable-webfonts' in
the past and was removed in
If735a733717596fae03042c5e277bd538bd8501f

Each wiki can be configured to load the fonts by default
using the new global variable $wgULSWebfontsEnabled.
Its default value is true (to load fonts).

This also removes the preference 'uls-enable', recently added in
I71b70d8ee7c3cad7f49b32e5dc494ef4fc1bdb2f

The initialization of ext.uls.webfonts.js is changed as well,
so that minimal webfonts JS library code is loaded,
and the rest is loaded only if a user requests it.

Bug: 60304
Change-Id: I49e812eae32266f165591c75fd67b86ca06b13f0
2014-02-10 17:40:30 +05:30

42 lines
1.9 KiB
Gherkin

# The tests do not normalize the font-family passed back by the browser
# Firefox/Chrome/Phantomjs handle the normalization differently.
#
# https://bugzilla.wikimedia.org/show_bug.cgi?id=57101
@phantomjs-bug
Feature: Autonym font
* Web font should always be applied to the ULS language selector's language
selection screen for display and input languages.
* Web font should always be applied to the interlanguage section of MediaWiki
when MediaWiki extension ULS is installed.
@login @commons.wikimedia.beta.wmflabs.org
Scenario: Autonym font is used in the ULS language search dialog for display language selection by logged-in users
Given I am logged in
And I open the Universal Language Selector
And I open Display panel of language settings
When I click the button with the ellipsis
Then the language list of ULS should use Autonym font
@login @commons.wikimedia.beta.wmflabs.org
Scenario: Autonym font is used in the ULS language search dialog for input language selection by logged-in users
Given I am logged in
And I open the Universal Language Selector
And I switch to Input panel of language settings
When I click the button with the ellipsis
Then the language list of ULS should use Autonym font
@en.wikipedia.beta.wmflabs.org
Scenario: Autonym font should be used in the Interlanguage area of a page only with Interlanguage links
When I am on the main page
Then the Interlanguage links should use Autonym font
And elements that are not Interlanguage links should not use Autonym font
@commons.wikimedia.beta.wmflabs.org
Scenario: Autonym font is used in the ULS language search dialog for input language selection by anonymous users
Given I am at random page
And I open the Universal Language Selector
And I open Input side panel of language settings
When I click the button with the ellipsis
Then the language list of ULS should use Autonym font