From 4b59a86037cdcf9186dcb319283917f45c4df277 Mon Sep 17 00:00:00 2001 From: Alessandro Palmeira + Diego Araujo Date: Wed, 19 Dec 2012 16:33:41 +0000 Subject: [PATCH] [Mezuro] Added new scenarios to creating project feature --- plugins/mezuro/features/creating_project.feature | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/plugins/mezuro/features/creating_project.feature b/plugins/mezuro/features/creating_project.feature index e956091..e0bf289 100644 --- a/plugins/mezuro/features/creating_project.feature +++ b/plugins/mezuro/features/creating_project.feature @@ -29,7 +29,29 @@ Feature: Create project And I should see "Add Repository" @selenium - Scenario: I delete a Mezuro project + Scenario: I edit a Mezuro project + Given I am on mycommunity's control panel + When I create a Mezuro project with the following data + | Title | Sample Project | + | Description | Sample Description | + And I am on article "Sample Project" + And I should be on /mycommunity/sample-project + When I follow "Edit" + + @selenium + Scenario: I delete a Mezuro project that belongs to me + Given the following Mezuro project + | name | description | owner | + | Sample Project | Sample Description | joaosilva | + And I am on article "Sample Project" + And I should be on /joaosilva/sample-project + When I follow "Delete" + And I confirm the "Are you sure that you want to remove the item "Sample Project"?" dialog + Then I go to /joaosilva/sample-project + And I should see "There is no such page: /joaosilva/sample-project" + + @selenium + Scenario: I cannot delete a Mezuro project that doesn't belong to me Given the following Mezuro project | name | description | owner | | Sample Project | Sample Description | joaosilva | @@ -39,3 +61,4 @@ Feature: Create project And I confirm the "Are you sure that you want to remove the item "Sample Project"?" dialog Then I go to /joaosilva/sample-project And I should see "There is no such page: /joaosilva/sample-project" + -- libgit2 0.21.2