Merge pull request #2733 from madmatt/pulls/behat-profile

Fix profile.feature behat test
This commit is contained in:
Will Rossiter 2013-12-20 16:17:55 -08:00
commit 5354a547c6

View File

@ -1,36 +1,36 @@
@todo
Feature: Manage my own settings Feature: Manage my own settings
As a CMS user As a CMS user
I want to be able to change personal settings I want to be able to change personal settings
In order to streamline my CMS experience In order to streamline my CMS experience
Background: Background:
Given a "member" "Joe" belongs to "Admin Group" with "Email"="joe@test.com" and "Password"="secret" Given a "member" "Joe" belonging to "Admin Group" with "Email"="joe@test.com" and "Password"="secret"
And the "group" "Admin Group" has permissions "Full administrative rights" And the "group" "Admin Group" has permissions "Full administrative rights"
And I am logged in with "joe@test.com" and "secret" And I log in with "joe@test.com" and "secret"
And I navigate to "admin/myprofile" And I go to "admin/myprofile"
Scenario: I can edit my personal details Scenario: I can edit my personal details
Given I fill in "First Name" with "Jack" Given I fill in "First Name" with "Jack"
And I fill in "Surname" with "Johnson" And I fill in "Surname" with "Johnson"
And I fill in "Email" with "jack@test.com" And I fill in "Email" with "jack@test.com"
When I press the "Save" button When I press the "Save" button
Then I should not see "John" Given I go to "admin/myprofile"
But I should see "Jack" Then I should not see "Joe"
Then I should see "Jack"
And I should see "Johnson" And I should see "Johnson"
And I should see "jack@test.com"
Scenario: I can change my password Scenario: I can change my password
Given I click "Change Password" Given I follow "Change Password"
And I fill out "Password" with "newsecret" And I fill in "Password" with "newsecret"
And I fill out "Confirm Password" with "newsecret" And I fill in "Confirm Password" with "newsecret"
And I press the "Save" button And I press the "Save" button
And I log out And I am not logged in
When I log in with "joe@test.com" and "newsecret" When I log in with "joe@test.com" and "newsecret"
And I go to "admin/myprofile"
Then I should see the CMS Then I should see the CMS
Scenario: I can change the interface language Scenario: I can change the interface language
Given I fill in "Interface Language" with "German (Germany)" Given I fill in the "Interface Language" dropdown with "German (Germany)"
And I press the "Save" button And I press the "Save" button
Then I should see "Sprache" Then I should see "Sprache"