Commit 4b59a86037cdcf9186dcb319283917f45c4df277
Committed by
Paulo Meireles
1 parent
aa7b94d8
Exists in
master
and in
29 other branches
[Mezuro] Added new scenarios to creating project feature
Showing
1 changed file
with
24 additions
and
1 deletions
Show diff stats
plugins/mezuro/features/creating_project.feature
@@ -29,7 +29,29 @@ Feature: Create project | @@ -29,7 +29,29 @@ Feature: Create project | ||
29 | And I should see "Add Repository" | 29 | And I should see "Add Repository" |
30 | 30 | ||
31 | @selenium | 31 | @selenium |
32 | - Scenario: I delete a Mezuro project | 32 | + Scenario: I edit a Mezuro project |
33 | + Given I am on mycommunity's control panel | ||
34 | + When I create a Mezuro project with the following data | ||
35 | + | Title | Sample Project | | ||
36 | + | Description | Sample Description | | ||
37 | + And I am on article "Sample Project" | ||
38 | + And I should be on /mycommunity/sample-project | ||
39 | + When I follow "Edit" | ||
40 | + | ||
41 | + @selenium | ||
42 | + Scenario: I delete a Mezuro project that belongs to me | ||
43 | + Given the following Mezuro project | ||
44 | + | name | description | owner | | ||
45 | + | Sample Project | Sample Description | joaosilva | | ||
46 | + And I am on article "Sample Project" | ||
47 | + And I should be on /joaosilva/sample-project | ||
48 | + When I follow "Delete" | ||
49 | + And I confirm the "Are you sure that you want to remove the item "Sample Project"?" dialog | ||
50 | + Then I go to /joaosilva/sample-project | ||
51 | + And I should see "There is no such page: /joaosilva/sample-project" | ||
52 | + | ||
53 | + @selenium | ||
54 | + Scenario: I cannot delete a Mezuro project that doesn't belong to me | ||
33 | Given the following Mezuro project | 55 | Given the following Mezuro project |
34 | | name | description | owner | | 56 | | name | description | owner | |
35 | | Sample Project | Sample Description | joaosilva | | 57 | | Sample Project | Sample Description | joaosilva | |
@@ -39,3 +61,4 @@ Feature: Create project | @@ -39,3 +61,4 @@ Feature: Create project | ||
39 | And I confirm the "Are you sure that you want to remove the item "Sample Project"?" dialog | 61 | And I confirm the "Are you sure that you want to remove the item "Sample Project"?" dialog |
40 | Then I go to /joaosilva/sample-project | 62 | Then I go to /joaosilva/sample-project |
41 | And I should see "There is no such page: /joaosilva/sample-project" | 63 | And I should see "There is no such page: /joaosilva/sample-project" |
64 | + |