Commit 0e32b379e544c125ca9468be46ab53562d1310df

Authored by Rafael Manzo
2 parents f9a69306 646114ca

Merge pull request #143 from beatrizrezener/issue128

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