Commit 19f6ff42e543ca4b9ece89ea7d87422785a9f93e

Authored by Rafael Manzo
2 parents 77f10325 63f1c2b8

Merge pull request #247 from mezuro/disable_jquery_effects_on_tests

Disable jquery effects on tests
Metric Selection accordion is closed by default
app/assets/javascripts/testing.js.erb 0 → 100644
... ... @@ -0,0 +1,3 @@
  1 +<% if Rails.env == "test" %>
  2 + $(function(evt) { $.fx.off = true; });
  3 +<% end %>
... ...
app/views/metric_configurations/choose_metric.html.erb
... ... @@ -27,7 +27,8 @@
27 27 $(function() {
28 28 $( "#base-tool-accordion" ).accordion({
29 29 heightStyle: "content",
30   - collapsible: true,
  30 + active: false,
  31 + collapsible: true
31 32 });
32 33 });
33 34  
... ...
features/metric_configuration/create.feature
... ... @@ -65,6 +65,7 @@ Feature: Metric Configuration Creation
65 65 And I have a metric configuration with code "total_abstract_classes" within the given mezuro configuration
66 66 And I am at the Sample Configuration page
67 67 And I click the Add Metric link
  68 + And I click the "Analizo" h3
68 69 And I click the Total Abstract Classes link
69 70 And I fill the Weight field with "2"
70 71 And I set the select field "Aggregation Form" as "Average"
... ...