Commit 49023ea1a238d63e2bbeae1ef426b13c775b02dc

Authored by Beatriz Rezener
1 parent e23e7416

Fixed Compound Metric Configuration acceptance test

Signed-off-by:Beatriz Rezener <beatrizrezener@gmail.com>
features/compound_metric_configuration/create.feature
... ... @@ -3,7 +3,7 @@ Feature: Compound Metric Configuration Creation
3 3 As a regular user
4 4 I should be able to create compound metric configurations
5 5  
6   - @wip @kalibro_restart @javascript
  6 + @kalibro_restart @javascript
7 7 Scenario: compound metric configuration creation
8 8 Given I am a regular user
9 9 And I am signed in
... ... @@ -24,6 +24,9 @@ Feature: Compound Metric Configuration Creation
24 24 And I set the select field "Scope" as "Class"
25 25 And I set the select field "Reading Group" as "Scholar"
26 26 And I press the Save button
  27 + When I click the show link of the Coumpound Metric
27 28 Then I should see "My Compound Metric"
28 29 And I should see "mcm"
29 30 And I should see "8"
  31 + And I should see "AVERAGE"
  32 +
30 33 \ No newline at end of file
... ...
features/step_definitions/compound_metric_configuration_steps.rb
... ... @@ -22,6 +22,10 @@ When(/^I click the edit link of the Coumpound Metric$/) do
22 22 page.find('tr', :text => @compound_metric_configuration.metric.name).click_link('Edit')
23 23 end
24 24  
  25 +When(/^I click the show link of the Coumpound Metric$/) do
  26 + page.find('tr', :text => "My Compound Metric").click_link('Show')
  27 +end
  28 +
25 29 Then(/^I should be at compound metric configuration sample page$/) do
26 30 expect(page).to have_content(@compound_metric_configuration.metric.name)
27 31 expect(page).to have_content("Ranges")
... ...