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
48 lines
2.1 KiB
Gherkin
48 lines
2.1 KiB
Gherkin
@login
|
|
Feature: Live preview of display language changes
|
|
|
|
Background:
|
|
Given I am logged in
|
|
And I am at random page
|
|
|
|
@needs-custom-setup @commons.wikimedia.beta.wmflabs.org
|
|
Scenario: Display language change is previewed immediately
|
|
Given I open the Universal Language Selector
|
|
And I open Display panel of language settings
|
|
And I click the button with the ellipsis
|
|
And in the language filter I type malayalam
|
|
And I click on the link to select Malayalam
|
|
Then I should see the text in the language panel in Malayalam
|
|
|
|
Scenario: Live preview of display language changes can be reverted on cancel
|
|
Given I open "Language" panel of language settings
|
|
And I select a language different than English for display language
|
|
When I click Cancel
|
|
And I open "Language" panel of language settings
|
|
Then I should see the text in the language panel in English
|
|
|
|
Scenario: Live preview of display language changes can be reverted on closing the dialog with the X button
|
|
Given I open "Language" panel of language settings
|
|
And I select a language different than English for display language
|
|
When I click X
|
|
And I open "Language" panel of language settings
|
|
Then I should see the text in the language panel in English
|
|
|
|
Scenario: Live preview of display language changes can be reverted on closing the dialog on cancel from a different section
|
|
Given I open "Language" panel of language settings
|
|
And I select a language different than English for display language
|
|
And I switch to "Input" panel of language settings
|
|
When I click Cancel
|
|
And I open "Language" panel of language settings
|
|
Then I should see the text in the language panel in English
|
|
|
|
Scenario: Font setting is reset after pressing "Cancel"
|
|
Given I open "Fonts" panel of language settings
|
|
When I set English font to OpenDyslexic
|
|
And I apply the changes
|
|
And I open "Fonts" panel of language settings
|
|
And I set English font to System
|
|
And I click Cancel
|
|
When I open "Fonts" panel of language settings
|
|
Then the selected content font must be OpenDyslexic
|