Commit 5e6af544ad7888719fa6100b9a1a85d45ddd3392
1 parent
861e5a40
Exists in
master
and in
5 other branches
Ignore deactivate_user feature.
This feature will be reviewed on future cycles. Signed-off-by: Daniel Bucher <daniel.bucher88@gmail.com> Signed-off-by: Renan Gordo <renan2727@hotmail.com>
Showing
2 changed files
with
45 additions
and
44 deletions
Show diff stats
... | ... | @@ -0,0 +1,45 @@ |
1 | +Feature: deactivate user | |
2 | + As a environment admin | |
3 | + I want to be able deactivate my account | |
4 | + So that user data remains persisted and allows the reactivation of the account | |
5 | + | |
6 | + Background: | |
7 | + Given "MpogSoftwarePlugin" plugin is enabled | |
8 | + And I am logged in as admin | |
9 | + And I go to /admin/plugins | |
10 | + And I check "MpogSoftwarePlugin" | |
11 | + And I press "Save changes" | |
12 | + And I go to /account/logout | |
13 | + And the following users | |
14 | + | login | name | email | | |
15 | + | joaosilva | Joao Silva | joaosilva@example.com | | |
16 | + And I am logged in as "joaosilva" | |
17 | + | |
18 | + | |
19 | + @selenium-fixme | |
20 | + Scenario: successfull deactivation | |
21 | + Given I go to joaosilva's control panel | |
22 | + And I follow "Edit Profile" | |
23 | + And I follow "Delete profile" | |
24 | + And I follow "Yes, I am sure" | |
25 | + Then I am not logged in | |
26 | + When I go to /profile/joaosilva | |
27 | + Then I should see "This profile is inaccessible." | |
28 | + | |
29 | + @selenium-fixme | |
30 | + Scenario: successfull reactivation of account | |
31 | + Given I go to joaosilva's control panel | |
32 | + And I follow "Edit Profile" | |
33 | + And I follow "Delete profile" | |
34 | + And I follow "Yes, I am sure" | |
35 | + And I go to the homepage | |
36 | + When I follow "Login" | |
37 | + And I follow "New user" | |
38 | + And I fill in the following within ".no-boxes": | |
39 | + | e-Mail | joaosilva@example.com | | |
40 | + | Full name | 123 | | |
41 | + And I follow "Reactive account" | |
42 | + And I fill in the following within ".no-boxes": | |
43 | + | Username or Email | joaosilva@example.com | | |
44 | + And I press "Send instructions" | |
45 | + Then I should see "An e-mail was just sent to your e-mail address" | ... | ... |
features/logic_delete.feature
... | ... | @@ -1,44 +0,0 @@ |
1 | -Feature: deactivate user | |
2 | - As a user | |
3 | - I want to deactivate my account | |
4 | - So I can reactivate my account later | |
5 | - | |
6 | - Background: | |
7 | - Given "MpogSoftwarePlugin" plugin is enabled | |
8 | - And I am logged in as admin | |
9 | - And I go to /admin/plugins | |
10 | - And I check "MpogSoftwarePlugin" | |
11 | - And I press "Save changes" | |
12 | - And I go to /account/logout | |
13 | - And the following users | |
14 | - | login | name | email | | |
15 | - | joaosilva | Joao Silva | joaosilva@example.com | | |
16 | - And I am logged in as "joaosilva" | |
17 | - | |
18 | -@selenium | |
19 | - Scenario: successfull deactivation | |
20 | - Given I go to joaosilva's control panel | |
21 | - And I follow "Edit Profile" | |
22 | - And I follow "Delete profile" | |
23 | - And I follow "Yes, I am sure" | |
24 | - Then I am not logged in | |
25 | - When I go to /profile/joaosilva | |
26 | - Then I should see "This profile is inaccessible." | |
27 | - | |
28 | -@selenium | |
29 | - Scenario: successfull reactivation of account | |
30 | - Given I go to joaosilva's control panel | |
31 | - And I follow "Edit Profile" | |
32 | - And I follow "Delete profile" | |
33 | - And I follow "Yes, I am sure" | |
34 | - And I go to the homepage | |
35 | - When I follow "Login" | |
36 | - And I follow "New user" | |
37 | - And I fill in the following within ".no-boxes": | |
38 | - | e-Mail | joaosilva@example.com | | |
39 | - | Full name | 123 | | |
40 | - And I follow "Reactive account" | |
41 | - And I fill in the following within ".no-boxes": | |
42 | - | Username or Email | joaosilva@example.com | | |
43 | - And I press "Send instructions" | |
44 | - Then I should see "An e-mail was just sent to your e-mail address" |