Commit 37be7d7c2801c9d00c8b360a1a81ec538af47cd0
Committed by
Paulo Meireles
1 parent
a49aca64
Exists in
master
and in
28 other branches
[Mezuro] Preparing files for merge commits.
Showing
7 changed files
with
0 additions
and
547 deletions
Show diff stats
plugins/mezuro/features/adding_metric_configuration.feature
| @@ -1,63 +0,0 @@ | @@ -1,63 +0,0 @@ | ||
| 1 | -Feature: Add metric configuration to a configuration | ||
| 2 | - As a mezuro user | ||
| 3 | - I want to add metric configurations to a Kalibro configuration | ||
| 4 | - | ||
| 5 | - Background: | ||
| 6 | - Given the following users | ||
| 7 | - | login | name | | ||
| 8 | - | joaosilva | Joao Silva | | ||
| 9 | - And I am logged in as "joaosilva" | ||
| 10 | - And "Mezuro" plugin is enabled | ||
| 11 | - And I go to the Control panel | ||
| 12 | - And I create a Mezuro configuration with the following data | ||
| 13 | - | Title | My Configuration | | ||
| 14 | - | Description | A sample description | | ||
| 15 | - | ||
| 16 | - Scenario: adding a native metric configuration | ||
| 17 | - When I follow "Add Metric" | ||
| 18 | - And I follow "Analizo" | ||
| 19 | - And I follow "Lines of Code" | ||
| 20 | - And I fill in the following: | ||
| 21 | - | Code: | Sample Code | | ||
| 22 | - | Weight: | 10.0 | | ||
| 23 | - And I select "Average" from "Aggregation Form:" | ||
| 24 | - And I press "Add" | ||
| 25 | - Then I should see "Lines of Code" | ||
| 26 | - And I should see "Analizo" | ||
| 27 | - And I should see "Sample Code" | ||
| 28 | - | ||
| 29 | - Scenario: adding a native metric configuration without code | ||
| 30 | - When I follow "Add metric" | ||
| 31 | - And I follow "Analizo" | ||
| 32 | - And I follow "Number of Children" | ||
| 33 | - And I don't fill anything | ||
| 34 | - And I press "Add" | ||
| 35 | - Then I should be at the url "/myprofile/my-community/plugin/mezuro/new_metric_configuration" | ||
| 36 | - | ||
| 37 | - Scenario: adding a compound metric configuration | ||
| 38 | - When I follow "Add Metric" | ||
| 39 | - And I follow "New Compound Metric" | ||
| 40 | - And I fill in the following: | ||
| 41 | - | Name: | Compound sample | | ||
| 42 | - | Description: | 10.0 | | ||
| 43 | - | Script: | return 42; | | ||
| 44 | - | Code: | anyCode | | ||
| 45 | - | Weight: | 10.0 | | ||
| 46 | - And I select "Class" from "Scope:" | ||
| 47 | - And I select "Average" from "Aggregation Form:" | ||
| 48 | - And I press "Add" | ||
| 49 | - Then I should see "Compound sample" | ||
| 50 | - | ||
| 51 | - Scenario: adding a compound metric configuration with invalid script | ||
| 52 | - When I follow "Add metric" | ||
| 53 | - And I follow "New Compound Metric" | ||
| 54 | - And I fill in the following: | ||
| 55 | - | Name: | Compound sample | | ||
| 56 | - | Description: | 10.0 | | ||
| 57 | - | Script: | invalid script | | ||
| 58 | - | Code: | anyCode | | ||
| 59 | - | Weight: | 10.0 | | ||
| 60 | - And I select "Class" from "Scope:" | ||
| 61 | - And I select "Average" from "Aggregation Form:" | ||
| 62 | - And I press "Add" | ||
| 63 | - Then I should see "Metric with invalid code or script: invalid script" |
plugins/mezuro/features/adding_ranges.feature
| @@ -1,64 +0,0 @@ | @@ -1,64 +0,0 @@ | ||
| 1 | -Feature: Add range to a metric configuration | ||
| 2 | - As a mezuro user | ||
| 3 | - I want to add ranges to a Kalibro metric configuration | ||
| 4 | - | ||
| 5 | - Background: | ||
| 6 | - Given the following users | ||
| 7 | - | login | name | | ||
| 8 | - | joaosilva | Joao Silva | | ||
| 9 | - And I am logged in as "joaosilva" | ||
| 10 | - And "Mezuro" plugin is enabled | ||
| 11 | - And I go to the Control Panel | ||
| 12 | - And I create a Mezuro configuration with the following data | ||
| 13 | - | Title | My Configuration | | ||
| 14 | - | Description | A sample description | | ||
| 15 | - And I follow "Add Metric" | ||
| 16 | - And I follow "Analizo" | ||
| 17 | - And I follow "Lines of Code" | ||
| 18 | - And I fill in the following: | ||
| 19 | - | Code: | Sample Code | | ||
| 20 | - | Weight: | 10.0 | | ||
| 21 | - And I select "Average" from "Aggregation Form:" | ||
| 22 | - And I press "Add" | ||
| 23 | - | ||
| 24 | - Scenario: adding a range to a metric configuration | ||
| 25 | - When I follow "New Range" and wait | ||
| 26 | - And I fill in the following: | ||
| 27 | - | (*) Label: | label | | ||
| 28 | - | (*) Beginning: | 1 | | ||
| 29 | - | (*) End: | 10 | | ||
| 30 | - | (*) Grade: | 100 | | ||
| 31 | - | (*) Color: | FF00FF | | ||
| 32 | - | Comments: | Comentário | | ||
| 33 | - And I press "Save Range" and wait | ||
| 34 | - Then I should see "label" within "#ranges" | ||
| 35 | - | ||
| 36 | - Scenario: adding a range with invalid beginning field | ||
| 37 | - When I follow "New Range" and wait | ||
| 38 | - And I fill in the following: | ||
| 39 | - | (*) Label: | label | | ||
| 40 | - | (*) Beginning: | teste | | ||
| 41 | - | (*) End: | 10 | | ||
| 42 | - | (*) Grade: | 100 | | ||
| 43 | - | (*) Color: | FF00FF | | ||
| 44 | - | Comments: | Comentário | | ||
| 45 | - And I press "Save Range" and wait | ||
| 46 | - Then I should see "Beginning, End and Grade must be numeric values." inside an alert | ||
| 47 | - | ||
| 48 | - Scenario: adding a range with beginning greater than end | ||
| 49 | - When I follow "New Range" and wait | ||
| 50 | - And I fill in the following: | ||
| 51 | - | (*) Label: | label | | ||
| 52 | - | (*) Beginning: | 100 | | ||
| 53 | - | (*) End: | 10 | | ||
| 54 | - | (*) Grade: | 100 | | ||
| 55 | - | (*) Color: | FF00FF | | ||
| 56 | - | Comments: | Comentário | | ||
| 57 | - And I press "Save Range" and wait | ||
| 58 | - Then I should see "End must be greater than Beginning." inside an alert | ||
| 59 | - | ||
| 60 | - Scenario: adding a range with no parameters | ||
| 61 | - When I follow "New Range" and wait | ||
| 62 | - And I dont't fill anything | ||
| 63 | - And I press "Save Range" and wait | ||
| 64 | - Then I should see "Please fill all fields marked with (*)." inside an alert |
plugins/mezuro/features/creating_configuration.feature
| @@ -1,53 +0,0 @@ | @@ -1,53 +0,0 @@ | ||
| 1 | -Feature: Create configuration | ||
| 2 | - As a mezuro user | ||
| 3 | - I want to create a Mezuro configuration | ||
| 4 | - | ||
| 5 | - Background: | ||
| 6 | - Given the following users | ||
| 7 | - | login | name | | ||
| 8 | - | joaosilva | Joao Silva | | ||
| 9 | - And I am logged in as "joaosilva" | ||
| 10 | - And "Mezuro" plugin is enabled | ||
| 11 | - | ||
| 12 | - Scenario: I see Mezuro Configuration on my control panel | ||
| 13 | - When I go to the Control panel | ||
| 14 | - Then I should see "Mezuro configuration" | ||
| 15 | - | ||
| 16 | - Scenario: I see an empty set of clone configurations | ||
| 17 | - When I go to the Control panel | ||
| 18 | - And there is no previous configurations created | ||
| 19 | - And I follow "Mezuro configuration" | ||
| 20 | - Then I should see "None" | ||
| 21 | - And I should not see "error" | ||
| 22 | - | ||
| 23 | - Scenario: creating with valid attributes | ||
| 24 | - When I go to the Control panel | ||
| 25 | - And I create a Mezuro configuration with the following data | ||
| 26 | - | Title | Qt_Calculator | | ||
| 27 | - | Description | A sample description | | ||
| 28 | - Then I should see "Name" | ||
| 29 | - And I should see "Qt_Calculator" | ||
| 30 | - And I should see "Description" | ||
| 31 | - And I should see "A sample description" | ||
| 32 | - | ||
| 33 | - Scenario: I see a set of clone configurations | ||
| 34 | - When I go to the Control panel | ||
| 35 | - And I follow "Mezuro configuration" | ||
| 36 | - Then I should see "None" | ||
| 37 | - And I should not see "error" | ||
| 38 | - | ||
| 39 | - Scenario: creating with duplicated name | ||
| 40 | - When I go to the Control panel | ||
| 41 | - And I create a Mezuro configuration with the following data | ||
| 42 | - | Title | Original Title | | ||
| 43 | - And I go to the Control panel | ||
| 44 | - And I create a Mezuro configuration with the following data | ||
| 45 | - | Title | Original Title | | ||
| 46 | - Then I should see "1 error prohibited this article from being saved" | ||
| 47 | - | ||
| 48 | - Scenario: creating without title | ||
| 49 | - When I go to the Control panel | ||
| 50 | - And I create a Mezuro configuration with the following data | ||
| 51 | - | Title | | | ||
| 52 | - Then I should see "1 error prohibited this article from being saved" | ||
| 53 | - |
plugins/mezuro/features/editing_configuration.feature
| @@ -1,49 +0,0 @@ | @@ -1,49 +0,0 @@ | ||
| 1 | -Feature: editing a configuration | ||
| 2 | - As a mezuro user | ||
| 3 | - I want to edit a Mezuro configuration | ||
| 4 | - | ||
| 5 | - Background: | ||
| 6 | - Given the following users | ||
| 7 | - | login | name | | ||
| 8 | - | joaosilva | Joao Silva | | ||
| 9 | - And I am logged in as "joaosilva" | ||
| 10 | - And "Mezuro" plugin is enabled | ||
| 11 | - And the following community | ||
| 12 | - | identifier | name | | ||
| 13 | - | mycommunity | My Community | | ||
| 14 | - And "Joao Silva" is admin of "My Community" | ||
| 15 | - And I am on My Community's cms | ||
| 16 | - And I create a content of type "Mezuro configuration" with the following data | ||
| 17 | - | Title | My Configuration | | ||
| 18 | - | Description | A sample description | | ||
| 19 | - And I follow "Add metric" | ||
| 20 | - And I follow "Analizo" | ||
| 21 | - And I follow "Lines of Code" | ||
| 22 | - And I fill in the following: | ||
| 23 | - | Code: | SampleCode | | ||
| 24 | - | Weight: | 10.0 | | ||
| 25 | - And I select "Average" from "Aggregation Form:" | ||
| 26 | - And I press "Add" | ||
| 27 | - And I press "Save" and wait | ||
| 28 | - | ||
| 29 | - Scenario: Keep metrics after editing configuration | ||
| 30 | - When I follow "Edit" within "article-actions" and wait | ||
| 31 | - And I press "Save" | ||
| 32 | - Then I should see "Lines of Code" | ||
| 33 | - | ||
| 34 | - #FIXME: Create new step for this scenario | ||
| 35 | - Scenario: Check if title is edit-disabled | ||
| 36 | - When I follow "Edit" within "article-actions" and wait | ||
| 37 | - And I fill in the following: | ||
| 38 | - | Title | Some Title | | ||
| 39 | - And I press "Save" and wait | ||
| 40 | - Then I should not see "Some Title" | ||
| 41 | - | ||
| 42 | - | ||
| 43 | - Scenario: Check if description is edit-enabled | ||
| 44 | - When I follow "Edit" within "article-actions" and wait | ||
| 45 | - And I fill in the following: | ||
| 46 | - | Description | Some Description | | ||
| 47 | - And I press "Save" and wait | ||
| 48 | - Then I should see "Some Description" | ||
| 49 | - And I should see "Lines of Code" |
plugins/mezuro/features/reading.feature
| @@ -1,34 +0,0 @@ | @@ -1,34 +0,0 @@ | ||
| 1 | -Feature: Reading | ||
| 2 | - As a Mezuro user | ||
| 3 | - I want to create, edit and remove a reading | ||
| 4 | - | ||
| 5 | - Background: | ||
| 6 | - Given the following users | ||
| 7 | - | login | name | | ||
| 8 | - | joaosilva | Joao Silva | | ||
| 9 | - And I am logged in as "joaosilva" | ||
| 10 | - And "Mezuro" plugin is enabled | ||
| 11 | - And I have a Mezuro reading group with the following data | ||
| 12 | - | name | Sample Reading Group | | ||
| 13 | - | description | Sample Description | | ||
| 14 | - | user | joaosilva | | ||
| 15 | - And I am on article "Sample Reading Group" | ||
| 16 | - | ||
| 17 | - @selenium @kalibro_restart | ||
| 18 | - Scenario: I want to see the Mezuro reading input form | ||
| 19 | - When I follow "Add Reading" | ||
| 20 | - Then I should see "Sample Reading Group Reading Group" in a link | ||
| 21 | - And I should see "Label" | ||
| 22 | - And I should see "Grade" | ||
| 23 | - And I should see "Color" | ||
| 24 | - And I should see "Save" button | ||
| 25 | - | ||
| 26 | - @selenium @kalibro_restart | ||
| 27 | - Scenario: I want to add a reading with no name | ||
| 28 | - When I follow "Add Reading" | ||
| 29 | - When I fill the fields with the new following data | ||
| 30 | - | reading_label | | | ||
| 31 | - | reading_grade | 10.2 | | ||
| 32 | - | reading_color | ABCDEF | | ||
| 33 | - And I press "Save" | ||
| 34 | - Then I should see "Please fill all fields marked with (*)." inside an alert |
plugins/mezuro/features/removing_metric_configuration.feature
| @@ -1,32 +0,0 @@ | @@ -1,32 +0,0 @@ | ||
| 1 | -Feature: Remove a metric configuration from a configuration | ||
| 2 | - As a mezuro user | ||
| 3 | - I want to remove metric configurations from a configuration | ||
| 4 | - | ||
| 5 | - Background: | ||
| 6 | - Given the following users | ||
| 7 | - | login | name | | ||
| 8 | - | joaosilva | Joao Silva | | ||
| 9 | - And I am logged in as "joaosilva" | ||
| 10 | - And "Mezuro" plugin is enabled | ||
| 11 | - And the following community | ||
| 12 | - | identifier | name | | ||
| 13 | - | mycommunity | My Community | | ||
| 14 | - And "Joao Silva" is admin of "My Community" | ||
| 15 | - And I am on My Community's cms | ||
| 16 | - And I create a content of type "Mezuro configuration" with the following data | ||
| 17 | - | Title | My Configuration | | ||
| 18 | - | Description | A sample description | | ||
| 19 | - When I follow "Add metric" | ||
| 20 | - And I follow "Analizo" | ||
| 21 | - And I follow "Lines of Code" | ||
| 22 | - And I fill in the following: | ||
| 23 | - | Code: | Sample Code | | ||
| 24 | - | Weight: | 10.0 | | ||
| 25 | - And I select "Average" from "Aggregation Form:" | ||
| 26 | - And I press "Add" | ||
| 27 | - And I press "Save" | ||
| 28 | - And I should see "Lines of Code" | ||
| 29 | - | ||
| 30 | - Scenario: I remove a metric configuration | ||
| 31 | - When I follow "Remove" | ||
| 32 | - Then I should not see "Lines of Code" |
plugins/mezuro/features/repository.feature
| @@ -1,252 +0,0 @@ | @@ -1,252 +0,0 @@ | ||
| 1 | -@kalibro_restart | ||
| 2 | -Feature: Repository | ||
| 3 | - As a Mezuro user | ||
| 4 | - I want to create, edit, remove and process a repository | ||
| 5 | - | ||
| 6 | - Background: | ||
| 7 | - Given the following users | ||
| 8 | - | login | name | | ||
| 9 | - | joaosilva | Joao Silva | | ||
| 10 | - And I am logged in as "joaosilva" | ||
| 11 | - And "Mezuro" plugin is enabled | ||
| 12 | - And the following community | ||
| 13 | - | identifier | name | | ||
| 14 | - | mycommunity | My Community | | ||
| 15 | - And "Joao Silva" is admin of "My Community" | ||
| 16 | - And I have a Mezuro project with the following data | ||
| 17 | - | name | Sample Project | | ||
| 18 | - | description | Sample Description | | ||
| 19 | - | community | mycommunity | | ||
| 20 | - And I have a Mezuro configuration with the following data | ||
| 21 | - | name | Sample Configuration| | ||
| 22 | - | description | Sample Description | | ||
| 23 | - | user | joaosilva | | ||
| 24 | - And I have a Mezuro reading group with the following data | ||
| 25 | - | name | Sample Reading group | | ||
| 26 | - | description | Sample Description | | ||
| 27 | - | user | joaosilva | | ||
| 28 | - And I have a Mezuro metric configuration with previous created configuration and reading group | ||
| 29 | - And I am on article "Sample Project" | ||
| 30 | - | ||
| 31 | - Scenario: I want to see the Mezuro repository input form | ||
| 32 | - When I follow "Add Repository" | ||
| 33 | - Then I should see "Name" | ||
| 34 | - And I should see "Description" | ||
| 35 | - And I should see "License" | ||
| 36 | - And I should see "Process Period" | ||
| 37 | - And I should see "Type" | ||
| 38 | - And I should see "Address" | ||
| 39 | - And I should see "Configuration" | ||
| 40 | - And I should see "Add" button | ||
| 41 | - | ||
| 42 | - @selenium | ||
| 43 | - Scenario: I try to add a repository with no name | ||
| 44 | - Given I follow "Add Repository" | ||
| 45 | - When I fill the fields with the new following data | ||
| 46 | - | repository_name | | | ||
| 47 | - | repository_description | My Description | | ||
| 48 | - | repository_license | ISC License (ISC) | | ||
| 49 | - | repository_process_period | Not Periodically | | ||
| 50 | - | repository_type | SUBVERSION | | ||
| 51 | - | repository_address | https://project.svn.sourceforge.net/svnroot/project | | ||
| 52 | - | repository_configuration_id | Sample Configuration | | ||
| 53 | - And I press "Add" | ||
| 54 | - Then I should see "Please fill all fields marked with (*)." inside an alert | ||
| 55 | - | ||
| 56 | - @selenium | ||
| 57 | - Scenario: I try to add a repository with no address | ||
| 58 | - Given I follow "Add Repository" | ||
| 59 | - When I fill the fields with the new following data | ||
| 60 | - | repository_name | My Name | | ||
| 61 | - | repository_description | My Description | | ||
| 62 | - | repository_license | ISC License (ISC) | | ||
| 63 | - | repository_process_period | Not Periodically | | ||
| 64 | - | repository_type | SUBVERSION | | ||
| 65 | - | repository_address | | | ||
| 66 | - | repository_configuration_id | Sample Configuration | | ||
| 67 | - And I press "Add" | ||
| 68 | - Then I should see "Please fill all fields marked with (*)." inside an alert | ||
| 69 | - | ||
| 70 | - @selenium | ||
| 71 | - Scenario: I try to add a repository with a invalid address | ||
| 72 | - Given I follow "Add Repository" | ||
| 73 | - When I fill the fields with the new following data | ||
| 74 | - | repository_name | My Name | | ||
| 75 | - | repository_description | My Description | | ||
| 76 | - | repository_license | ISC License (ISC) | | ||
| 77 | - | repository_process_period | Not Periodically | | ||
| 78 | - | repository_type | GIT | | ||
| 79 | - | repository_address | https://invalid-address.any-extension | | ||
| 80 | - | repository_configuration_id | Sample Configuration | | ||
| 81 | - And I press "Add" | ||
| 82 | - Then I should see "Address does not match type GIT chosen." inside an alert | ||
| 83 | - | ||
| 84 | - @selenium-teste | ||
| 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" | ||
| 103 | - And I should see "Status" | ||
| 104 | - | ||
| 105 | - #FIXME: create the step given I have repository... | ||
| 106 | - @selenium-teste | ||
| 107 | - Scenario: I want to see the repository edit form | ||
| 108 | - Given I follow "Add Repository" | ||
| 109 | - And I fill the fields with the new following data | ||
| 110 | - | repository_name | My Name | | ||
| 111 | - | repository_description | My Description | | ||
| 112 | - | repository_license | ISC License (ISC) | | ||
| 113 | - | repository_process_period | Not Periodically | | ||
| 114 | - | repository_type | GIT | | ||
| 115 | - | repository_address | https://github.com/user/project.git | | ||
| 116 | - | repository_configuration_id | Sample Configuration | | ||
| 117 | - And I press "Add" | ||
| 118 | - And I am on article "Sample Project" | ||
| 119 | - When I follow "Edit" | ||
| 120 | - Then I should see "My Name" in the "repository_name" input | ||
| 121 | - And I should see "My Description" in the "repository_description" input | ||
| 122 | - And I should see "ISC License (ISC)" in the "repository_license" select | ||
| 123 | - And I should see "Not Periodically" in the process period select field | ||
| 124 | - And I should see "GIT" in the "repository_type" select | ||
| 125 | - And I should see "https://github.com/user/project.git" in the "repository_address" input | ||
| 126 | - And I should see "Sample Configuration" in the repository configuration select field | ||
| 127 | - | ||
| 128 | - #FIXME: create the step given I have repository... | ||
| 129 | - @selenium | ||
| 130 | - Scenario: I edit a Mezuro project with valid attributes | ||
| 131 | - Given I follow "Add Repository" | ||
| 132 | - And I fill the fields with the new following data | ||
| 133 | - | repository_name | My Name | | ||
| 134 | - | repository_description | My Description | | ||
| 135 | - | repository_license | ISC License (ISC) | | ||
| 136 | - | repository_process_period | Not Periodically | | ||
| 137 | - | repository_type | GIT | | ||
| 138 | - | repository_address | https://github.com/user/project.git | | ||
| 139 | - | repository_configuration_id | Sample Configuration | | ||
| 140 | - And I press "Add" | ||
| 141 | - And I am on article "Sample Project" | ||
| 142 | - When I follow "Edit" | ||
| 143 | - And I fill the fields with the new following data | ||
| 144 | - | repository_name | Another Name | | ||
| 145 | - | repository_description | Another Description | | ||
| 146 | - | repository_license | Apple Public Source License (APSL-2.0) | | ||
| 147 | - | repository_process_period | Weekly | | ||
| 148 | - | repository_type | SUBVERSION | | ||
| 149 | - | repository_address | https://project.svn.sourceforge.net/svnroot/project | | ||
| 150 | - | repository_configuration_id | Sample Configuration | | ||
| 151 | - And I press "Add" | ||
| 152 | - Then I should see "Another Name" | ||
| 153 | - And I should see "Another Description" | ||
| 154 | - And I should see "Apple Public Source License (APSL-2.0)" | ||
| 155 | - And I should see "Weekly" | ||
| 156 | - And I should see "SUBVERSION" | ||
| 157 | - And I should see "https://project.svn.sourceforge.net/svnroot/project" | ||
| 158 | - And I should see "Sample Configuration" | ||
| 159 | - | ||
| 160 | - #FIXME: create the step given I have repository... | ||
| 161 | - @selenium | ||
| 162 | - Scenario: I try to edit a Mezuro project leaving empty its title | ||
| 163 | - Given I follow "Add Repository" | ||
| 164 | - And I fill the fields with the new following data | ||
| 165 | - | repository_name | My Name | | ||
| 166 | - | repository_description | My Description | | ||
| 167 | - | repository_license | ISC License (ISC) | | ||
| 168 | - | repository_process_period | Not Periodically | | ||
| 169 | - | repository_type | GIT | | ||
| 170 | - | repository_address | https://github.com/user/project.git | | ||
| 171 | - | repository_configuration_id | Sample Configuration | | ||
| 172 | - And I press "Add" | ||
| 173 | - And I am on article "Sample Project" | ||
| 174 | - And I follow "Edit" | ||
| 175 | - When I erase the "repository_name" field | ||
| 176 | - And I press "Add" | ||
| 177 | - Then I should see "Please fill all fields marked with (*)." inside an alert | ||
| 178 | - | ||
| 179 | - #FIXME: create the step given I have repository... | ||
| 180 | - @selenium | ||
| 181 | - Scenario: I try to edit a Mezuro project leaving empty its address | ||
| 182 | - Given I follow "Add Repository" | ||
| 183 | - And I fill the fields with the new following data | ||
| 184 | - | repository_name | My Name | | ||
| 185 | - | repository_description | My Description | | ||
| 186 | - | repository_license | ISC License (ISC) | | ||
| 187 | - | repository_process_period | Not Periodically | | ||
| 188 | - | repository_type | GIT | | ||
| 189 | - | repository_address | https://github.com/user/project.git | | ||
| 190 | - | repository_configuration_id | Sample Configuration | | ||
| 191 | - And I press "Add" | ||
| 192 | - And I am on article "Sample Project" | ||
| 193 | - And I follow "Edit" | ||
| 194 | - When I erase the "repository_address" field | ||
| 195 | - And I press "Add" | ||
| 196 | - Then I should see "Please fill all fields marked with (*)." inside an alert | ||
| 197 | - | ||
| 198 | - #FIXME: create the step given I have repository... | ||
| 199 | - @selenium | ||
| 200 | - Scenario: I try to edit a repository with an existing repository name | ||
| 201 | - Given I follow "Add Repository" | ||
| 202 | - And I fill the fields with the new following data | ||
| 203 | - | repository_name | My Name | | ||
| 204 | - | repository_description | My Description | | ||
| 205 | - | repository_license | ISC License (ISC) | | ||
| 206 | - | repository_process_period | Not Periodically | | ||
| 207 | - | repository_type | GIT | | ||
| 208 | - | repository_address | https://github.com/user/project.git | | ||
| 209 | - | repository_configuration_id | Sample Configuration | | ||
| 210 | - And I press "Add" | ||
| 211 | - And I am on article "Sample Project" | ||
| 212 | - And I follow "Add Repository" | ||
| 213 | - And I fill the fields with the new following data | ||
| 214 | - | repository_name | Another Name | | ||
| 215 | - | repository_description | Another Description | | ||
| 216 | - | repository_license | Apple Public Source License (APSL-2.0) | | ||
| 217 | - | repository_process_period | Weekly | | ||
| 218 | - | repository_type | SUBVERSION | | ||
| 219 | - | repository_address | https://project.svn.sourceforge.net/svnroot/project | | ||
| 220 | - | repository_configuration_id | Sample Configuration | | ||
| 221 | - And I press "Add" | ||
| 222 | - And I am on article "Sample Project" | ||
| 223 | - When I follow the edit link for "My Name" repository | ||
| 224 | - And I fill the fields with the new following data | ||
| 225 | - | repository_name | Another Name | | ||
| 226 | - | repository_description | Another Description | | ||
| 227 | - | repository_license | Apple Public Source License (APSL-2.0) | | ||
| 228 | - | repository_process_period | Weekly | | ||
| 229 | - | repository_type | SUBVERSION | | ||
| 230 | - | repository_address | https://project.svn.sourceforge.net/svnroot/project | | ||
| 231 | - | repository_configuration_id | Sample Configuration | | ||
| 232 | - And I press "Add" | ||
| 233 | - #Then I should see "Slug The title (article name) is already being used by another article, please use another title." | ||
| 234 | - #FIXME fix this validation | ||
| 235 | - | ||
| 236 | - #FIXME: Need to define permissions? | ||
| 237 | - @selenium | ||
| 238 | - Scenario: I delete a Mezuro repository | ||
| 239 | - Given I follow "Add Repository" | ||
| 240 | - And I fill the fields with the new following data | ||
| 241 | - | repository_name | My Name | | ||
| 242 | - | repository_description | My Description | | ||
| 243 | - | repository_license | ISC License (ISC) | | ||
| 244 | - | repository_process_period | Not Periodically | | ||
| 245 | - | repository_type | GIT | | ||
| 246 | - | repository_address | https://github.com/user/project.git | | ||
| 247 | - | repository_configuration_id | Sample Configuration | | ||
| 248 | - And I press "Add" | ||
| 249 | - And I am on article "Sample Project" | ||
| 250 | - When I follow the remove link for "My Name" repository | ||
| 251 | - And I should not see "My Name" | ||
| 252 | - |