Commit 90c69fe2f913057933b73bd7ebc56fb5c225d153

Authored by Daniel Cunha
1 parent 68de20e0

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 13 | sample-community | Sample Community |
14 14 And "Maria Silva" is a member of "Sample Community"
15 15  
  16 + @selenium
16 17 Scenario: deleting profile
17 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 20 And I follow "Edit Profile"
20 21 And I follow "Delete profile"
21 22 Then I should see "Are you sure you want to delete this profile?"
... ... @@ -31,24 +32,25 @@ Feature: delete profile
31 32  
32 33 Scenario: giving up of deleting profile
33 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 36 And I follow "Edit Profile"
36 37 And I follow "Delete profile"
37 38 Then I should see "Are you sure you want to delete this profile?"
38 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 42 Scenario: community admin can see link to delete profile
42 43 Given "Joao Silva" is admin of "Sample Community"
43 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 46 When I follow "Community Info and settings"
46 47 Then I should see "Delete profile"
47 48  
  49 + @selenium
48 50 Scenario: community admin deletes the community
49 51 Given "Joao Silva" is admin of "Sample Community"
50 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 54 And I follow "Community Info and settings"
53 55 And I follow "Delete profile"
54 56 Then I should see "Are you sure you want to delete this profile?"
... ... @@ -69,17 +71,18 @@ Feature: delete profile
69 71 | sample-enterprise | Sample Enterprise |
70 72 And "Joao Silva" is admin of "Sample Enterprise"
71 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 75 When I follow "Enterprise Info and settings"
74 76 Then I should see "Delete profile"
75 77  
  78 + @selenium
76 79 Scenario: enterprise admin deletes the enterprise
77 80 Given the following enterprise
78 81 | identifier | name |
79 82 | sample-enterprise | Sample Enterprise |
80 83 And "Joao Silva" is admin of "Sample Enterprise"
81 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 86 When I follow "Enterprise Info and settings"
84 87 And I follow "Delete profile"
85 88 Then I should see "Are you sure you want to delete this profile?"
... ... @@ -98,9 +101,10 @@ Feature: delete profile
98 101 And I go to /myprofile/sample-enterprise/profile_editor/destroy_profile
99 102 Then I should see "Access denied"
100 103  
  104 + @selenium
101 105 Scenario: environment admin deletes profile
102 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 108 And I follow "Edit Profile"
105 109 And I follow "Delete profile"
106 110 Then I should see "Are you sure you want to delete this profile?"
... ...