2017-04-18 00:34:18 +02:00
|
|
|
@retry
|
2013-09-13 18:44:17 +02:00
|
|
|
Feature: Manage my own settings
|
2017-10-30 05:30:41 +01:00
|
|
|
As a CMS user
|
|
|
|
I want to be able to change personal settings
|
|
|
|
In order to streamline my CMS experience
|
2012-11-30 12:27:38 +01:00
|
|
|
|
2017-10-30 05:30:41 +01:00
|
|
|
Background:
|
|
|
|
Given a "member" "Joe" belonging to "Admin group" with "Email"="joe@example.org" and "Password"="secret"
|
|
|
|
And the "group" "Admin group" has permissions "Full administrative rights"
|
2017-10-26 23:49:38 +02:00
|
|
|
And the "member" "Joe" belonging to "Admin group2"
|
|
|
|
And the "group" "Admin group2" has permissions "Full administrative rights"
|
2017-10-30 05:30:41 +01:00
|
|
|
And I log in with "joe@example.org" and "secret"
|
|
|
|
And I go to "admin/myprofile"
|
2013-09-13 18:44:17 +02:00
|
|
|
|
2017-10-26 23:49:38 +02:00
|
|
|
Scenario: I cannot remove all my admin groups
|
|
|
|
When I click the "Admin group" option in the "DirectGroups" listbox
|
|
|
|
And I click the "Admin group2" option in the "DirectGroups" listbox
|
|
|
|
And I press the "Save" button
|
|
|
|
Then I should see "Cannot remove all admin groups from your profile" in the "#Form_EditForm" element
|
|
|
|
|
|
|
|
Scenario: I can remove one of my admin groups
|
|
|
|
When I click the "Admin group" option in the "DirectGroups" listbox
|
|
|
|
And I press the "Save" button
|
|
|
|
Then I should see a "Saved" notice
|
|
|
|
And I should not see "Cannot remove all admin groups from your profile" in the "#Form_EditForm" element
|
|
|
|
|
2017-10-30 05:30:41 +01:00
|
|
|
Scenario: I can edit my personal details
|
|
|
|
Given I fill in "First Name" with "Jack"
|
|
|
|
And I fill in "Surname" with "Johnson"
|
|
|
|
And I fill in "Email" with "jack@example.org"
|
|
|
|
When I press the "Save" button
|
|
|
|
Given I go to "admin/myprofile"
|
|
|
|
Then I should not see "Joe"
|
|
|
|
Then I should see "Jack"
|
|
|
|
And I should see "Johnson"
|
|
|
|
|
|
|
|
Scenario: I can't reset the password without the original
|
|
|
|
Given I follow "Change Password"
|
|
|
|
And I fill in "Current Password" with "idontknow"
|
|
|
|
And I fill in "New Password" with "newsecret"
|
|
|
|
And I fill in "Confirm Password" with "newsecret"
|
|
|
|
And I press the "Save" button
|
|
|
|
Then I should see "The current password you have entered is not correct."
|
|
|
|
|
|
|
|
Scenario: I can change my password
|
|
|
|
Given I follow "Change Password"
|
|
|
|
And I fill in "Current Password" with "secret"
|
|
|
|
And I fill in "New Password" with "newsecret"
|
|
|
|
And I fill in "Confirm Password" with "newsecret"
|
|
|
|
And I press the "Save" button
|
|
|
|
And I am not logged in
|
|
|
|
When I log in with "joe@example.org" and "newsecret"
|
|
|
|
And I go to "admin/myprofile"
|
|
|
|
Then I should see the CMS
|
|
|
|
|
|
|
|
Scenario: I can change the interface language
|
|
|
|
And I select "German (Germany)" from "Interface Language"
|
|
|
|
And I press the "Save" button
|
|
|
|
Then I should see "Sprache"
|
2013-09-13 18:44:17 +02:00
|
|
|
|
|
|
|
# TODO Date/time format - Difficult because its not exposed anywhere in the CMS?
|
2016-05-13 06:23:38 +02:00
|
|
|
# TODO Group modification as ADMIN user
|