Behat test for language switching

This commit is contained in:
Ingo Schommer 2013-10-07 00:04:50 +02:00
parent bead05acba
commit 7f0e589bf5

View File

@ -3,10 +3,19 @@ Feature: My Profile
I want to be able to change personal settings
In order to streamline my CMS experience
Background:
Given I am logged in with "ADMIN" permissions
@javascript
Scenario: I can see date formatting help
Given I am logged in with "ADMIN" permissions
# Only tests this specific field and admin UI because its got built-in tooltips
When I go to "/admin/myprofile"
Given I go to "/admin/myprofile"
And I follow "Show formatting help"
Then I should see "Four-digit year"
Then I should see "Four-digit year"
Scenario: I can change the interface language
Given I go to "/admin/myprofile"
Then I should see "My Profile"
When I fill in "German (Germany)" for the "Interface Language" dropdown
And I press the "Save" button
Then I should see "Mein Profil"