Files
mediawiki-extensions-Univer…/tests/browser/features/persistent_settings.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

36 lines
1.4 KiB
Gherkin

# First scenario seems to fail whenever OpenDyslexic is missing
@commons.wikimedia.beta.wmflabs.org @login @needs-custom-setup
Feature: Persistent settings
This assumes wiki content language is English.
Background:
Given I am logged in
And I have reset my preferences
And I set "German" as the interface language
And I open the Universal Language Selector
And I open Display panel of language settings
And I open Fonts panel of language settings
And I select OpenDyslexic font for the interface language for the live preview
Scenario: Interface font sticks to another page
When I apply the changes
And I visit a random page
Then the selected interface font must be OpenDyslexic
Scenario: Discarding a live preview of a font keeps the previous font
When I close the panel to discard the changes
And I visit a random page
Then the selected interface font must be Systemschriftart
Scenario: Changing both a font and an input method is saved
When I open Input side panel of language settings
And I click the button with the ellipsis
And in the language filter I type ml
And I click on the link to select Malayalam
And I select the ml-inscript2 input method in the panel
And I apply the changes
And I visit a random page
Then the selected interface font must be OpenDyslexic
And the selected input method for Malayalam is ml-inscript2