Commit 3835f7f6f0cc355dab1c579d0cf5d3d34756a765

Authored by Rafael Manzo + Daniel Alves
Committed by Paulo Meireles
1 parent 9a35368c

[Mezuro] Test for repository creation

Showing 1 changed file with 23 additions and 3 deletions   Show diff stats
plugins/mezuro/features/repository.feature
... ... @@ -48,7 +48,7 @@ Feature: Repository
48 48 | repository_license | ISC License (ISC) |
49 49 | repository_process_period | Not Periodically |
50 50 | repository_type | SUBVERSION |
51   - | repository_address | https://qt-calculator.svn.sourceforge.net/svnroot/qt-calculator |
  51 + | repository_address | https://project.svn.sourceforge.net/svnroot/project |
52 52 | repository_configuration_id | Sample Configuration |
53 53 And I press "Add"
54 54 Then I should see "Please fill all fields marked with (*)." inside an alert
... ... @@ -68,7 +68,7 @@ Feature: Repository
68 68 Then I should see "Please fill all fields marked with (*)." inside an alert
69 69  
70 70 @selenium
71   - Scenario: I want to add a repository with a invalid address for git repository
  71 + Scenario: I want to add a repository with a invalid address
72 72 Given I follow "Add Repository"
73 73 When I fill the fields with the new following data
74 74 | repository_name | My Name |
... ... @@ -81,5 +81,25 @@ Feature: Repository
81 81 And I press "Add"
82 82 Then I should see "Address does not match type GIT chosen." inside an alert
83 83  
84   - #Scenario: I want to add a repository with valid attributes
  84 + @selenium
  85 + Scenario: I want to add a repository with valid attributes
  86 + Given I follow "Add Repository"
  87 + When I fill the fields with the new following data
  88 + | repository_name | My Name |
  89 + | repository_description | My Description |
  90 + | repository_license | ISC License (ISC) |
  91 + | repository_process_period | Not Periodically |
  92 + | repository_type | GIT |
  93 + | repository_address | https://github.com/user/project.git |
  94 + | repository_configuration_id | Sample Configuration |
  95 + And I press "Add"
  96 + Then I should see "My Name"
  97 + And I should see "My Description"
  98 + And I should see "ISC License (ISC)"
  99 + And I should see "Not Periodically"
  100 + And I should see "GIT"
  101 + And I should see "https://github.com/user/project.git"
  102 + And I should see "Sample Configuration"
85 103  
  104 + #Scenario: I want to see the repository edit form
  105 + # Given I have a repository with the following data
86 106 \ No newline at end of file
... ...