Files
mediawiki-extensions-Univer…/tests/browser/features/autonym.feature
Antoine Musso 9fa4b32c08 browsertests: profile for default settings
Some scenarii are meant to be tested on specific wiki instances such as
commmons.beta.wmflabs.org or sandbox.translatewiki.net. For the Gerrit
integration, we are using a fresh wiki having the default ULS settings,
hence the specific tests will definitely fail.

This patch introduces a new cucumber tag `@needs-custom-setup`, it is
meant to flag tests which require further configuration tweaking, for
example tests explicitly targetting an already existing wiki such as
beta or translatewiki

I am introducing a new cucumber profile 'ciwmf' which exclude any test
tagged '@needs-custom-setup' or '@phantomjs-bug'.  That profile is going
to be used by the Jenkins/Gerrit install using something like:

  cucumber -p ciwmf

equivalent to:

  cucumber -t '~@phantomjs-bug' -t '~@needs-custom-setup'

Marked some tests as being bugged on phantomjs:
* autonym ones because of bug 57101 "browser tests must normalize
  font-family".
* accept_language since we dont have yet a way to pass the accept
  language header via phantomjs.
* Commented out an 'input method is visible' test with Vector + Hebrew
  since it does not pass.
* Malayalam link is looked by title which is translated by default.

This patch is passing on my local wiki, albeit skipping a lot of steps.

Change-Id: Ib055f5470886e1b818d4c53cb4c61a751d81e154
2013-12-05 11:35:35 +01:00

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 open 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