Commit 256b6b7073d762ff5950d25e0a1442ac609432cc
Committed by
Paulo Meireles
1 parent
6e136c78
Exists in
master
and in
29 other branches
[Mezuro] Creating feature for editing a configuration.
Showing
1 changed file
with
31 additions
and
0 deletions
Show diff stats
plugins/mezuro/test/features/editing_configuration.feature
0 → 100644
| @@ -0,0 +1,31 @@ | @@ -0,0 +1,31 @@ | ||
| 1 | +Feature: editing a configuration | ||
| 2 | + As a mezuro user | ||
| 3 | + I want to edit 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 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 "Kalibro configuration" with the following data | ||
| 17 | + | Title | My Configuration | | ||
| 18 | + | Description | A sample description | | ||
| 19 | + | ||
| 20 | + Scenario: adding a metric configuration | ||
| 21 | + When I follow "Add metric" | ||
| 22 | + And I follow "Analizo" | ||
| 23 | + And I follow "Lines of Code" | ||
| 24 | + And I fill in the following: | ||
| 25 | + | Code: | Sample Code | | ||
| 26 | + | Weight: | 10.0 | | ||
| 27 | + And I select "Average" from "Aggregation:" | ||
| 28 | + And I press "Add" | ||
| 29 | + Then I should see "Lines of Code" | ||
| 30 | + And I should see "Analizo" | ||
| 31 | + And I should see "Sample Code" |