Commit 56e45f23303005ec505c1215a6018301d366573f

Authored by Heitor
Committed by Rafael Manzo
1 parent bc152ef4

Added acceptance test for creating a metric fu metric configuration

Signed off by: Rafael Manzo <rr.manzo@gmail.com>
Showing 1 changed file with 17 additions and 0 deletions   Show diff stats
features/metric_configuration/create.feature
... ... @@ -27,6 +27,23 @@ Feature: Metric Configuration Creation
27 27 Then I should see "2"
28 28  
29 29 @kalibro_configuration_restart @javascript
  30 + Scenario: ruby metric configuration creation
  31 + Given I am a regular user
  32 + And I am signed in
  33 + And I own a sample configuration
  34 + And I have a reading group named "Scholar"
  35 + And I am at the Sample Configuration page
  36 + And I click the Add Metric link
  37 + And I click the "MetricFu" h3
  38 + And I click the Pain link
  39 + And I fill the Weight field with "2"
  40 + And I set the select field "Aggregation Form" as "Average"
  41 + And I set the select field "Reading Group" as "Scholar"
  42 + When I press the Save button
  43 + Then I should see "Pain"
  44 + Then I should see "2"
  45 +
  46 + @kalibro_configuration_restart @javascript
30 47 Scenario: metric configuration creation
31 48 Given I am a regular user
32 49 And I am signed in
... ...