From 90c69fe2f913057933b73bd7ebc56fb5c225d153 Mon Sep 17 00:00:00 2001 From: Daniel Cunha Date: Mon, 10 Dec 2012 22:21:20 -0300 Subject: [PATCH] delete_profile,feature --- features/delete_profile.feature | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/features/delete_profile.feature b/features/delete_profile.feature index 99a87a2..806233f 100644 --- a/features/delete_profile.feature +++ b/features/delete_profile.feature @@ -13,9 +13,10 @@ Feature: delete profile | sample-community | Sample Community | And "Maria Silva" is a member of "Sample Community" + @selenium Scenario: deleting profile Given I am logged in as "joaosilva" - And I am on Joao Silva's control panel + And I am on joaosilva's control panel And I follow "Edit Profile" And I follow "Delete profile" Then I should see "Are you sure you want to delete this profile?" @@ -31,24 +32,25 @@ Feature: delete profile Scenario: giving up of deleting profile Given I am logged in as "joaosilva" - And I am on Joao Silva's control panel + And I am on joaosilva's control panel And I follow "Edit Profile" And I follow "Delete profile" Then I should see "Are you sure you want to delete this profile?" When I follow "No, I gave up" - Then I should be on Joao Silva's profile + Then I should be on joaosilva's profile Scenario: community admin can see link to delete profile Given "Joao Silva" is admin of "Sample Community" And I am logged in as "joaosilva" - And I am on Sample Community's control panel + And I am on sample-community's control panel When I follow "Community Info and settings" Then I should see "Delete profile" + @selenium Scenario: community admin deletes the community Given "Joao Silva" is admin of "Sample Community" And I am logged in as "joaosilva" - And I am on Sample Community's control panel + And I am on sample-community's control panel And I follow "Community Info and settings" And I follow "Delete profile" Then I should see "Are you sure you want to delete this profile?" @@ -69,17 +71,18 @@ Feature: delete profile | sample-enterprise | Sample Enterprise | And "Joao Silva" is admin of "Sample Enterprise" And I am logged in as "joaosilva" - And I am on Sample Enterprise's control panel + And I am on sample-enterprise's control panel When I follow "Enterprise Info and settings" Then I should see "Delete profile" + @selenium Scenario: enterprise admin deletes the enterprise Given the following enterprise | identifier | name | | sample-enterprise | Sample Enterprise | And "Joao Silva" is admin of "Sample Enterprise" And I am logged in as "joaosilva" - And I am on Sample Enterprise's control panel + And I am on sample-enterprise's control panel When I follow "Enterprise Info and settings" And I follow "Delete profile" Then I should see "Are you sure you want to delete this profile?" @@ -98,9 +101,10 @@ Feature: delete profile And I go to /myprofile/sample-enterprise/profile_editor/destroy_profile Then I should see "Access denied" + @selenium Scenario: environment admin deletes profile Given I am logged in as admin - And I am on Joao Silva's control panel + And I am on joaosilva's control panel And I follow "Edit Profile" And I follow "Delete profile" Then I should see "Are you sure you want to delete this profile?" -- libgit2 0.21.2