deactivate_user.feature
1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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 "SoftwareCommunitiesPlugin" plugin is enabled
And I am logged in as mpog_admin
And I go to /admin/plugins
And I check "SoftwareCommunitiesPlugin"
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"