Refactor two live preview scenarios

Change-Id: I8e0dc62e24f9f86232af6b68dc4809e858aa2367
This commit is contained in:
Niklas Laxström
2013-12-04 11:59:43 +02:00
parent d7d43e1dbb
commit cdb21c9c49
4 changed files with 16 additions and 13 deletions

View File

@@ -14,18 +14,22 @@ Feature: Live preview of display language changes
And I click on the link to select Malayalam
Then I should see the text in the language panel in Malayalam
@commons.wikimedia.beta.wmflabs.org
Scenario: Live preview of display language changes can be reverted on cancel
Given I open "Language" panel of language settings
Given I open the Universal Language Selector
And I open Display 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
And I open Display panel of language settings
Then I should see the text in the language panel in English
@commons.wikimedia.beta.wmflabs.org
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
Given I open the Universal Language Selector
And I open Display 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
And I open Display 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