From 49023ea1a238d63e2bbeae1ef426b13c775b02dc Mon Sep 17 00:00:00 2001 From: Beatriz Rezener Date: Mon, 13 Oct 2014 18:45:38 -0300 Subject: [PATCH] Fixed Compound Metric Configuration acceptance test --- features/compound_metric_configuration/create.feature | 5 ++++- features/step_definitions/compound_metric_configuration_steps.rb | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/features/compound_metric_configuration/create.feature b/features/compound_metric_configuration/create.feature index e92c04d..58d894f 100644 --- a/features/compound_metric_configuration/create.feature +++ b/features/compound_metric_configuration/create.feature @@ -3,7 +3,7 @@ Feature: Compound Metric Configuration Creation As a regular user I should be able to create compound metric configurations - @wip @kalibro_restart @javascript + @kalibro_restart @javascript Scenario: compound metric configuration creation Given I am a regular user And I am signed in @@ -24,6 +24,9 @@ Feature: Compound Metric Configuration Creation And I set the select field "Scope" as "Class" And I set the select field "Reading Group" as "Scholar" And I press the Save button + When I click the show link of the Coumpound Metric Then I should see "My Compound Metric" And I should see "mcm" And I should see "8" + And I should see "AVERAGE" + \ No newline at end of file diff --git a/features/step_definitions/compound_metric_configuration_steps.rb b/features/step_definitions/compound_metric_configuration_steps.rb index 79a9767..d05904e 100644 --- a/features/step_definitions/compound_metric_configuration_steps.rb +++ b/features/step_definitions/compound_metric_configuration_steps.rb @@ -22,6 +22,10 @@ When(/^I click the edit link of the Coumpound Metric$/) do page.find('tr', :text => @compound_metric_configuration.metric.name).click_link('Edit') end +When(/^I click the show link of the Coumpound Metric$/) do + page.find('tr', :text => "My Compound Metric").click_link('Show') +end + Then(/^I should be at compound metric configuration sample page$/) do expect(page).to have_content(@compound_metric_configuration.metric.name) expect(page).to have_content("Ranges") -- libgit2 0.21.2