Commit 90c69fe2f913057933b73bd7ebc56fb5c225d153
1 parent
68de20e0
Exists in
staging
and in
42 other branches
delete_profile,feature
Showing
1 changed file
with
12 additions
and
8 deletions
Show diff stats
features/delete_profile.feature
@@ -13,9 +13,10 @@ Feature: delete profile | @@ -13,9 +13,10 @@ Feature: delete profile | ||
13 | | sample-community | Sample Community | | 13 | | sample-community | Sample Community | |
14 | And "Maria Silva" is a member of "Sample Community" | 14 | And "Maria Silva" is a member of "Sample Community" |
15 | 15 | ||
16 | + @selenium | ||
16 | Scenario: deleting profile | 17 | Scenario: deleting profile |
17 | Given I am logged in as "joaosilva" | 18 | Given I am logged in as "joaosilva" |
18 | - And I am on Joao Silva's control panel | 19 | + And I am on joaosilva's control panel |
19 | And I follow "Edit Profile" | 20 | And I follow "Edit Profile" |
20 | And I follow "Delete profile" | 21 | And I follow "Delete profile" |
21 | Then I should see "Are you sure you want to delete this profile?" | 22 | Then I should see "Are you sure you want to delete this profile?" |
@@ -31,24 +32,25 @@ Feature: delete profile | @@ -31,24 +32,25 @@ Feature: delete profile | ||
31 | 32 | ||
32 | Scenario: giving up of deleting profile | 33 | Scenario: giving up of deleting profile |
33 | Given I am logged in as "joaosilva" | 34 | Given I am logged in as "joaosilva" |
34 | - And I am on Joao Silva's control panel | 35 | + And I am on joaosilva's control panel |
35 | And I follow "Edit Profile" | 36 | And I follow "Edit Profile" |
36 | And I follow "Delete profile" | 37 | And I follow "Delete profile" |
37 | Then I should see "Are you sure you want to delete this profile?" | 38 | Then I should see "Are you sure you want to delete this profile?" |
38 | When I follow "No, I gave up" | 39 | When I follow "No, I gave up" |
39 | - Then I should be on Joao Silva's profile | 40 | + Then I should be on joaosilva's profile |
40 | 41 | ||
41 | Scenario: community admin can see link to delete profile | 42 | Scenario: community admin can see link to delete profile |
42 | Given "Joao Silva" is admin of "Sample Community" | 43 | Given "Joao Silva" is admin of "Sample Community" |
43 | And I am logged in as "joaosilva" | 44 | And I am logged in as "joaosilva" |
44 | - And I am on Sample Community's control panel | 45 | + And I am on sample-community's control panel |
45 | When I follow "Community Info and settings" | 46 | When I follow "Community Info and settings" |
46 | Then I should see "Delete profile" | 47 | Then I should see "Delete profile" |
47 | 48 | ||
49 | + @selenium | ||
48 | Scenario: community admin deletes the community | 50 | Scenario: community admin deletes the community |
49 | Given "Joao Silva" is admin of "Sample Community" | 51 | Given "Joao Silva" is admin of "Sample Community" |
50 | And I am logged in as "joaosilva" | 52 | And I am logged in as "joaosilva" |
51 | - And I am on Sample Community's control panel | 53 | + And I am on sample-community's control panel |
52 | And I follow "Community Info and settings" | 54 | And I follow "Community Info and settings" |
53 | And I follow "Delete profile" | 55 | And I follow "Delete profile" |
54 | Then I should see "Are you sure you want to delete this profile?" | 56 | Then I should see "Are you sure you want to delete this profile?" |
@@ -69,17 +71,18 @@ Feature: delete profile | @@ -69,17 +71,18 @@ Feature: delete profile | ||
69 | | sample-enterprise | Sample Enterprise | | 71 | | sample-enterprise | Sample Enterprise | |
70 | And "Joao Silva" is admin of "Sample Enterprise" | 72 | And "Joao Silva" is admin of "Sample Enterprise" |
71 | And I am logged in as "joaosilva" | 73 | And I am logged in as "joaosilva" |
72 | - And I am on Sample Enterprise's control panel | 74 | + And I am on sample-enterprise's control panel |
73 | When I follow "Enterprise Info and settings" | 75 | When I follow "Enterprise Info and settings" |
74 | Then I should see "Delete profile" | 76 | Then I should see "Delete profile" |
75 | 77 | ||
78 | + @selenium | ||
76 | Scenario: enterprise admin deletes the enterprise | 79 | Scenario: enterprise admin deletes the enterprise |
77 | Given the following enterprise | 80 | Given the following enterprise |
78 | | identifier | name | | 81 | | identifier | name | |
79 | | sample-enterprise | Sample Enterprise | | 82 | | sample-enterprise | Sample Enterprise | |
80 | And "Joao Silva" is admin of "Sample Enterprise" | 83 | And "Joao Silva" is admin of "Sample Enterprise" |
81 | And I am logged in as "joaosilva" | 84 | And I am logged in as "joaosilva" |
82 | - And I am on Sample Enterprise's control panel | 85 | + And I am on sample-enterprise's control panel |
83 | When I follow "Enterprise Info and settings" | 86 | When I follow "Enterprise Info and settings" |
84 | And I follow "Delete profile" | 87 | And I follow "Delete profile" |
85 | Then I should see "Are you sure you want to delete this profile?" | 88 | Then I should see "Are you sure you want to delete this profile?" |
@@ -98,9 +101,10 @@ Feature: delete profile | @@ -98,9 +101,10 @@ Feature: delete profile | ||
98 | And I go to /myprofile/sample-enterprise/profile_editor/destroy_profile | 101 | And I go to /myprofile/sample-enterprise/profile_editor/destroy_profile |
99 | Then I should see "Access denied" | 102 | Then I should see "Access denied" |
100 | 103 | ||
104 | + @selenium | ||
101 | Scenario: environment admin deletes profile | 105 | Scenario: environment admin deletes profile |
102 | Given I am logged in as admin | 106 | Given I am logged in as admin |
103 | - And I am on Joao Silva's control panel | 107 | + And I am on joaosilva's control panel |
104 | And I follow "Edit Profile" | 108 | And I follow "Edit Profile" |
105 | And I follow "Delete profile" | 109 | And I follow "Delete profile" |
106 | Then I should see "Are you sure you want to delete this profile?" | 110 | Then I should see "Are you sure you want to delete this profile?" |