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
68 lines
2.2 KiB
Gherkin
68 lines
2.2 KiB
Gherkin
Feature: Input method engine
|
|
|
|
User is able to select among different input methods via a menu which is
|
|
activated by the input method indicator. User can type with selected input
|
|
method in different input fields and temporarily activate and deactivate the
|
|
input method.
|
|
|
|
@commons.wikimedia.beta.wmflabs.org
|
|
Scenario: Input method indicator is shown
|
|
|
|
The input method indicator is shown when input field gets a focus.
|
|
|
|
Given I am at random page
|
|
When I click on an input box
|
|
Then I should see the input method indicator
|
|
|
|
@commons.wikimedia.beta.wmflabs.org @needs-custom-setup
|
|
Scenario: Input method menu
|
|
|
|
Input method menu is shown when user clicks the input method indicator.
|
|
|
|
Given I am at random page
|
|
When I click on an input box
|
|
And I click on the input method indicator
|
|
Then I should see input methods for English
|
|
And I should see a list of available input methods
|
|
And I should see a list of suggested languages
|
|
|
|
@needs-custom-setup
|
|
Scenario: Unsupported input language
|
|
|
|
User visits a wiki with content language that does not have have an input
|
|
method.
|
|
|
|
Given I am on a wiki in Kotava language
|
|
When I open the input method menu
|
|
Then I should see input methods for Kotava
|
|
|
|
@needs-custom-setup @commons.wikimedia.beta.wmflabs.org
|
|
Scenario: Sticky input methods
|
|
|
|
Chosen input method selection persists across page loads.
|
|
|
|
Given I am at random page
|
|
When I open the input method menu
|
|
And I choose ml as the input language
|
|
And I open the input method menu
|
|
And I click on the Malayalam InScript 2 menu item
|
|
And I press Control-M
|
|
And I go to another random page
|
|
And I click on an input box
|
|
And I press Control-M
|
|
Then I should see the input method indicator
|
|
And in it there must be an element with Malayalam text
|
|
|
|
@commons.wikimedia.beta.wmflabs.org
|
|
Scenario Outline: Input method menu is completely visible
|
|
Given I visit a random page with <skin> skin and <language> as the interface language
|
|
When I open the input method menu
|
|
Then I should see the input method menu is not offscreen
|
|
|
|
Examples:
|
|
| skin | language |
|
|
| Vector | English |
|
|
| Vector | Hebrew |
|
|
| Monobook | English |
|
|
#| Monobook | Hebrew |
|