Commit 4b59a86037cdcf9186dcb319283917f45c4df277

Authored by Alessandro Palmeira + Diego Araujo
Committed by Paulo Meireles
1 parent aa7b94d8

[Mezuro] Added new scenarios to creating project feature

plugins/mezuro/features/creating_project.feature
... ... @@ -29,7 +29,29 @@ Feature: Create project
29 29 And I should see "Add Repository"
30 30  
31 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 55 Given the following Mezuro project
34 56 | name | description | owner |
35 57 | Sample Project | Sample Description | joaosilva |
... ... @@ -39,3 +61,4 @@ Feature: Create project
39 61 And I confirm the "Are you sure that you want to remove the item "Sample Project"?" dialog
40 62 Then I go to /joaosilva/sample-project
41 63 And I should see "There is no such page: /joaosilva/sample-project"
  64 +
... ...