From 6c072296357b79887eb4084e6838ff4cb9c09a31 Mon Sep 17 00:00:00 2001 From: Sebastian Schuster Date: Wed, 12 Jun 2013 10:58:50 +0200 Subject: [PATCH] Introduced a custom step to trigger the in-place renaming of reports --- features/saving.feature | 4 ++-- features/step_definitions/custom_steps.rb | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/features/saving.feature b/features/saving.feature index 959554da78..5018f2b983 100644 --- a/features/saving.feature +++ b/features/saving.feature @@ -125,7 +125,7 @@ Feature: Saving Queries And I fill in "Testreport" for "query_name" And I click on "Save" within "#save_as_form" And I should see "Testreport" within "#private_sidebar_report_list" - And I click on "#query_saved_name" + And I edit the report name in place And I fill in "Renamed" for "value" And I press "Rename" within "#query_saved_name-inplaceeditor" Then I should see "Renamed" within "#private_sidebar_report_list" @@ -145,7 +145,7 @@ Feature: Saving Queries And I check "Public" And I click on "Save" within "#save_as_form" Then I should see "Testreport" within "#public_sidebar_report_list" - And I click on "#query_saved_name" + And I edit the report name in place And I fill in "Renamed" for "value" And I press "Rename" within "#query_saved_name-inplaceeditor" Then I should see "Renamed" within "#public_sidebar_report_list" diff --git a/features/step_definitions/custom_steps.rb b/features/step_definitions/custom_steps.rb index fb767280ab..04b71a28fb 100644 --- a/features/step_definitions/custom_steps.rb +++ b/features/step_definitions/custom_steps.rb @@ -113,3 +113,6 @@ Given /^I (delete|remove) the (cost|time) entry "([^\"]*)"$/ do |method, type, n step %{I accept the alert dialog} end +Given /^I edit the report name in place$/ do + find(:css, "#query_saved_name").click +end