From 646114cab32ea8e256503b25020007c1d3d338ca Mon Sep 17 00:00:00 2001 From: Beatriz Rezener Date: Wed, 15 Oct 2014 13:21:02 -0300 Subject: [PATCH] Generalizing click show link step #128. --- features/compound_metric_configuration/create.feature | 2 +- features/step_definitions/compound_metric_configuration_steps.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/features/compound_metric_configuration/create.feature b/features/compound_metric_configuration/create.feature index 58d894f..63776f6 100644 --- a/features/compound_metric_configuration/create.feature +++ b/features/compound_metric_configuration/create.feature @@ -24,7 +24,7 @@ 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 + When I click the show link of "My Compound Metric" Then I should see "My Compound Metric" And I should see "mcm" And I should see "8" diff --git a/features/step_definitions/compound_metric_configuration_steps.rb b/features/step_definitions/compound_metric_configuration_steps.rb index d05904e..463679b 100644 --- a/features/step_definitions/compound_metric_configuration_steps.rb +++ b/features/step_definitions/compound_metric_configuration_steps.rb @@ -22,8 +22,8 @@ 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') +When(/^I click the show link of "(.*?)"$/) do |name| + page.find('tr', :text => name).click_link('Show') end Then(/^I should be at compound metric configuration sample page$/) do -- libgit2 0.21.2