Refactor ULS tests to reduce duplication and repetition
Change-Id: I96f1594f1b4d1960da9a8bc21e2a5c4727497b10
This commit is contained in:
@@ -1,74 +1,73 @@
|
||||
@en.wikipedia.beta.wmflabs.org @ie6-bug @ie7-bug
|
||||
Feature: ULS cog behaviour on the side-bar for logged in users
|
||||
@en.wikipedia.beta.wmflabs.org @ie6-bug @ie7-bug
|
||||
Feature: ULS cog in the sidebar allows access to language settings
|
||||
|
||||
Scenario: Page without interlanguage links has cog icon and language selector
|
||||
Given I am on a page without interlanguage links
|
||||
@login @uls-in-sidebar-only
|
||||
Scenario Outline: Opening language settings from sidebar
|
||||
Given I am <user status>
|
||||
And I am on <page type>
|
||||
When I click the cog icon by Languages in the sidebar
|
||||
Then I see the anonymous Language Settings panel
|
||||
Then I see the <user status> language settings panel
|
||||
|
||||
Scenario: Page with interlanguage links has cog icon and language selector
|
||||
Given I am on a page with interlanguage links
|
||||
Examples:
|
||||
| user status | page type |
|
||||
| logged out | a page without interlanguage links |
|
||||
| logged in | a page with interlanguage links |
|
||||
| logged out | a talk page without interlanguage links |
|
||||
| logged out | a talk page with interlanguage links |
|
||||
|
||||
@login @uls-in-sidebar-only
|
||||
Scenario Outline: Closing language settings without saving
|
||||
Given I am <user status>
|
||||
And I am on a page without interlanguage links
|
||||
When I click the cog icon by Languages in the sidebar
|
||||
Then I see the anonymous Language Settings panel
|
||||
|
||||
Scenario: Page without interlanguage links has cog icon and language selector on Talk page
|
||||
Given I am on a talk page without interlanguage links
|
||||
When I click the cog icon by Languages in the sidebar
|
||||
Then I see the anonymous Language Settings panel
|
||||
|
||||
Scenario: Page with interlanguage links has cog icon and language selector on Talk page
|
||||
Given I am on a talk page with interlanguage links
|
||||
When I click the cog icon by Languages in the sidebar
|
||||
Then I see the anonymous Language Settings panel
|
||||
|
||||
Scenario: Language Settings closes and opens with X button
|
||||
Given I navigate to the anonymous Language Settings panel
|
||||
When I click X
|
||||
And <close method>
|
||||
Then I do not see the Language Settings panel
|
||||
And the cog icon brings up anonymous Language Settings again
|
||||
And I click the cog icon by Languages in the sidebar
|
||||
And I see the <user status> language settings panel
|
||||
|
||||
Scenario: Language Settings closes and opens with Apply Settings buttons
|
||||
Given I navigate to the anonymous Language Settings panel
|
||||
When I click Apply Settings
|
||||
Then I do not see the Language Settings panel
|
||||
And the cog icon brings up anonymous Language Settings again
|
||||
Examples:
|
||||
| user status | close method |
|
||||
| logged in | I click X |
|
||||
| logged out | I click Cancel |
|
||||
# It is weird that this works, since the button is disabled until changes
|
||||
# have been made
|
||||
| logged out | I click Apply Settings |
|
||||
|
||||
Scenario: Language Settings closes and opens with Cancel buttons
|
||||
Given I navigate to the anonymous Language Settings panel
|
||||
When I click Cancel
|
||||
Then I do not see the Language Settings panel
|
||||
And the cog icon brings up anonymous Language Settings again
|
||||
|
||||
Scenario: Input settings display
|
||||
Given I navigate to the anonymous Language Settings panel
|
||||
When I click Input
|
||||
@login
|
||||
Scenario Outline: Input settings display
|
||||
Givan I am <user status>
|
||||
And I am on a page without interlanguage links
|
||||
When I open "Input" panel of language settings
|
||||
Then I can enable input methods
|
||||
And I can disable input methods
|
||||
|
||||
Examples:
|
||||
| user status |
|
||||
| logged out |
|
||||
| logged in |
|
||||
|
||||
Scenario: How to use link appears in the Input settings panel
|
||||
Given I navigate to the anonymous Language Settings panel
|
||||
When I click Input
|
||||
And I click Enable input
|
||||
Given I am at random page
|
||||
When I open "Input" 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
|
||||
Then I should see the How to use link near the Malayalam transliteration item
|
||||
|
||||
Scenario: Fonts default settings and display
|
||||
Given I navigate to the anonymous Language Settings panel
|
||||
When I click Fonts
|
||||
Then a font selectbox appears
|
||||
|
||||
Scenario: Fonts not default settings and display
|
||||
Given I navigate to the anonymous Language Settings panel
|
||||
When I click Fonts
|
||||
Then a font selectbox appears for content
|
||||
|
||||
Scenario: More languages
|
||||
Given I navigate to the anonymous Language Settings panel
|
||||
And I click Input
|
||||
And I click Enable input
|
||||
When I click the button with the ellipsis
|
||||
Scenario: More languages (input language selection)
|
||||
Given I am at random page
|
||||
When I open "Input" panel of language settings
|
||||
And I click the button with the ellipsis
|
||||
Then I see Worldwide
|
||||
And I see Language Search
|
||||
And I can navigate back to Input Settings
|
||||
|
||||
@login
|
||||
Scenario: More languages (interface language selection)
|
||||
Given I am logged in
|
||||
When I open "Language" panel of language settings
|
||||
And I click the button with the ellipsis
|
||||
Then I see Common Languages
|
||||
And I see Worldwide
|
||||
And I see Language Search
|
||||
And I can navigate back to Language Settings
|
||||
|
||||
Reference in New Issue
Block a user