diff --git a/features/deactivate_user.feature b/features/deactivate_user.feature new file mode 100644 index 0000000..8b0e21f --- /dev/null +++ b/features/deactivate_user.feature @@ -0,0 +1,45 @@ +Feature: deactivate user + As a environment admin + I want to be able deactivate my account + So that user data remains persisted and allows the reactivation of the account + + Background: + Given "MpogSoftwarePlugin" plugin is enabled + And I am logged in as admin + And I go to /admin/plugins + And I check "MpogSoftwarePlugin" + And I press "Save changes" + And I go to /account/logout + And the following users + | login | name | email | + | joaosilva | Joao Silva | joaosilva@example.com | + And I am logged in as "joaosilva" + + + @selenium-fixme + Scenario: successfull deactivation + Given I go to joaosilva's control panel + And I follow "Edit Profile" + And I follow "Delete profile" + And I follow "Yes, I am sure" + Then I am not logged in + When I go to /profile/joaosilva + Then I should see "This profile is inaccessible." + + @selenium-fixme + Scenario: successfull reactivation of account + Given I go to joaosilva's control panel + And I follow "Edit Profile" + And I follow "Delete profile" + And I follow "Yes, I am sure" + And I go to the homepage + When I follow "Login" + And I follow "New user" + And I fill in the following within ".no-boxes": + | e-Mail | joaosilva@example.com | + | Full name | 123 | + And I follow "Reactive account" + And I fill in the following within ".no-boxes": + | Username or Email | joaosilva@example.com | + And I press "Send instructions" + Then I should see "An e-mail was just sent to your e-mail address" diff --git a/features/logic_delete.feature b/features/logic_delete.feature deleted file mode 100644 index 363dc79..0000000 --- a/features/logic_delete.feature +++ /dev/null @@ -1,44 +0,0 @@ -Feature: deactivate user - As a user - I want to deactivate my account - So I can reactivate my account later - - Background: - Given "MpogSoftwarePlugin" plugin is enabled - And I am logged in as admin - And I go to /admin/plugins - And I check "MpogSoftwarePlugin" - And I press "Save changes" - And I go to /account/logout - And the following users - | login | name | email | - | joaosilva | Joao Silva | joaosilva@example.com | - And I am logged in as "joaosilva" - -@selenium - Scenario: successfull deactivation - Given I go to joaosilva's control panel - And I follow "Edit Profile" - And I follow "Delete profile" - And I follow "Yes, I am sure" - Then I am not logged in - When I go to /profile/joaosilva - Then I should see "This profile is inaccessible." - -@selenium - Scenario: successfull reactivation of account - Given I go to joaosilva's control panel - And I follow "Edit Profile" - And I follow "Delete profile" - And I follow "Yes, I am sure" - And I go to the homepage - When I follow "Login" - And I follow "New user" - And I fill in the following within ".no-boxes": - | e-Mail | joaosilva@example.com | - | Full name | 123 | - And I follow "Reactive account" - And I fill in the following within ".no-boxes": - | Username or Email | joaosilva@example.com | - And I press "Send instructions" - Then I should see "An e-mail was just sent to your e-mail address" -- libgit2 0.21.2