diff --git a/features/repository/show.feature b/features/repository/show.feature index e0a954c..7990871 100644 --- a/features/repository/show.feature +++ b/features/repository/show.feature @@ -89,4 +89,17 @@ Feature: Show Repository And I ask for the module result of the given processing When I visit the repository show page And I click on the sample child's name - Then I should see a sample child's name \ No newline at end of file + Then I should see a sample child's name + + @kalibro_restart @wip + Scenario: Should show the graphic of a given metric + Given I am a regular user + And I am signed in + And I have a sample project + And I have a sample configuration with native metrics + And I have a sample repository within the sample project + And I start to process that repository + And I wait up for a ready processing + And I ask for the last ready processing of the given repository + And I see a sample metric's name + When I click on the sample metric's name \ No newline at end of file diff --git a/features/step_definitions/repository_steps.rb b/features/step_definitions/repository_steps.rb index 7feb0e8..fd9ee9d 100644 --- a/features/step_definitions/repository_steps.rb +++ b/features/step_definitions/repository_steps.rb @@ -47,6 +47,14 @@ Given(/^I ask for the module result of the given processing$/) do @module_result = ModuleResult.find @processing.results_root_id end +Given(/^I see a sample metric's name$/) do + page.should have_content(metric_configuration.metric.name) +end + +When(/^I click on the sample metric's name$/) do + click_link @metric_configuration.metric.name +end + When(/^I set the select field "(.+)" as "(.+)"$/) do |field, text| select text, from: field end -- libgit2 0.21.2