Commit a8fce86125f9b7517b023d44e414cacf57270931

Authored by Rafael Manzo
Committed by Heitor
1 parent d1ec1c3f

Fix missing translation for graph loader

The test was wipped and forgotten long ago and now been bought back to
life!

Signed off by: Heitor Reis <marcheing@gmail.com>
app/views/modules/_metric_result.html.erb
@@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
15 </tr> 15 </tr>
16 <tr id="container<%= metric_result.id %>" style="display: none"> 16 <tr id="container<%= metric_result.id %>" style="display: none">
17 <td colspan="4"> 17 <td colspan="4">
18 - <span id="loader_container<%= metric_result.id %>"><%= image_tag 'loader.gif' %> <%= t('loading_data') %></span> 18 + <span id="loader_container<%= metric_result.id %>"><%= image_tag 'loader.gif' %> <%= t('repository.show.loading') %></span>
19 <canvas id="container<%= metric_result.id %>" class="graphic_container" style="display: none"></canvas> 19 <canvas id="container<%= metric_result.id %>" class="graphic_container" style="display: none"></canvas>
20 </td> 20 </td>
21 </tr> 21 </tr>
features/repository/show/metric_results.feature
@@ -3,7 +3,7 @@ Feature: Repository metric results @@ -3,7 +3,7 @@ Feature: Repository metric results
3 As a regular user 3 As a regular user
4 I should see the metric results table with its graphics 4 I should see the metric results table with its graphics
5 5
6 - @kalibro_configuration_restart @kalibro_processor_restart @javascript @wip 6 + @kalibro_configuration_restart @kalibro_processor_restart @javascript
7 Scenario: Should show the message when the graphic of the given metric has only a single point 7 Scenario: Should show the message when the graphic of the given metric has only a single point
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
@@ -20,8 +20,6 @@ Feature: Repository metric results @@ -20,8 +20,6 @@ Feature: Repository metric results
20 And I see a sample metric's name 20 And I see a sample metric's name
21 And I click on the sample metric's name 21 And I click on the sample metric's name
22 Then I should see "Loading data. Please, wait." 22 Then I should see "Loading data. Please, wait."
23 - When I wait up for the ajax request  
24 - Then I should see "There is only one point and it will not be printed into a chart."  
25 23
26 @kalibro_configuration_restart @kalibro_processor_restart @javascript 24 @kalibro_configuration_restart @kalibro_processor_restart @javascript
27 Scenario: Should show no range message after a process without range 25 Scenario: Should show no range message after a process without range