From 256b6b7073d762ff5950d25e0a1442ac609432cc Mon Sep 17 00:00:00 2001 From: Diego Araújo + João Machini Date: Thu, 31 May 2012 16:55:31 -0300 Subject: [PATCH] [Mezuro] Creating feature for editing a configuration. --- plugins/mezuro/test/features/editing_configuration.feature | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+), 0 deletions(-) create mode 100644 plugins/mezuro/test/features/editing_configuration.feature diff --git a/plugins/mezuro/test/features/editing_configuration.feature b/plugins/mezuro/test/features/editing_configuration.feature new file mode 100644 index 0000000..e8ea0e0 --- /dev/null +++ b/plugins/mezuro/test/features/editing_configuration.feature @@ -0,0 +1,31 @@ +Feature: editing a configuration + As a mezuro user + I want to edit a Kalibro configuration + + Background: + Given the following users + | login | name | + | joaosilva | Joao Silva | + And I am logged in as "joaosilva" + And "Mezuro" plugin is enabled + And the following community + | identifier | name | + | mycommunity | My Community | + And "Joao Silva" is admin of "My Community" + And I am on My Community's cms + And I create a content of type "Kalibro configuration" with the following data + | Title | My Configuration | + | Description | A sample description | + + Scenario: adding a metric configuration + When I follow "Add metric" + And I follow "Analizo" + And I follow "Lines of Code" + And I fill in the following: + | Code: | Sample Code | + | Weight: | 10.0 | + And I select "Average" from "Aggregation:" + And I press "Add" + Then I should see "Lines of Code" + And I should see "Analizo" + And I should see "Sample Code" -- libgit2 0.21.2