From 819eebb5dc7aae31e4c62dc67b435367f9443a40 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 13 Sep 2013 18:44:17 +0200 Subject: [PATCH] Behat: Profile feature (steps only) --- tests/behat/features/profile.feature | 42 ++++++++++++++++++++++------ 1 file changed, 34 insertions(+), 8 deletions(-) diff --git a/tests/behat/features/profile.feature b/tests/behat/features/profile.feature index 3ae1f61ee..da07cc8bb 100644 --- a/tests/behat/features/profile.feature +++ b/tests/behat/features/profile.feature @@ -1,12 +1,38 @@ -Feature: My Profile +@todo +Feature: Manage my own settings As a CMS user I want to be able to change personal settings In order to streamline my CMS experience - @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" - And I follow "Show formatting help" - Then I should see "Four-digit year" \ No newline at end of file + Background: + Given a "member" "Joe" belongs to "Admin Group" with "Email"="joe@test.com" and "Password"="secret" + And the "group" "Admin Group" has permissions "Full administrative rights" + And I am logged in with "joe@test.com" and "secret" + And I navigate to "admin/myprofile" + + 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@test.com" + When I press the "Save" button + Then I should not see "John" + But I should see "Jack" + And I should see "Johnson" + And I should see "jack@test.com" + + Scenario: I can change my password + Given I click "Change Password" + And I fill out "Password" with "newsecret" + And I fill out "Confirm Password" with "newsecret" + And I press the "Save" button + And I log out + When I login with "joe@test.com" and "newsecret" + Then I should see the CMS + + Scenario: I can change the interface language + Given I fill in "Interface Language" with "German (Germany)" + And I press the "Save" button + Then I should see "Sprache" + + # TODO Date/time format - Difficult because its not exposed anywhere in the CMS? + # TODO Group modification as ADMIN user \ No newline at end of file