<ul class="results-list">
  <% test_results.each_with_index do |test_result, index| %>
    <li>
      <% if test_result[:status] == :failed %>

        <span class="text-danger">
          <%= status_icon(test_result[:status]) %>
          <strong class="example-title"><%= test_result[:title] %></strong>
          <a data-toggle="collapse" href="#example-result-<%= index %>"  class="example-see-more">Ver detalles</a>
        </span>
      <% else %>
        <span class="text-success example-title">
          <%= status_icon(test_result[:status]) %>
          <%= test_result[:title] %>
        </span>
      <% end %>

      <div class="example-result collapse <%= 'in' if visible_success_output %>" id="example-result-<%= index %>">
        <%= output_content_type.to_html test_result[:result] %>
      </div>
    </li>
  <% end %>
</ul>

<ul class="results-list">
  <% test_results.each_with_index do |test_result, index| %>
    <li>
      <% if test_result[:status] == :failed %>

        <span class="text-danger">
          <%= status_icon(test_result[:status]) %>
          <strong class="example-title"><%= test_result[:title] %></strong>
          <% unless visible_success_output %>
            <a data-toggle="collapse" href="#example-result-<%= index %>"  class="example-see-more">Ver detalles</a>
          <% end %>
        </span>
      <% else %>
        <span class="text-success example-title">
          <%= status_icon(test_result[:status]) %>
          <%= test_result[:title] %>
        </span>
      <% end %>

      <div class="example-result collapse <%= 'in' if visible_success_output %>" id="example-result-<%= index %>">
        <%= output_content_type.to_html test_result[:result] %>
      </div>
    </li>
  <% end %>
</ul>

Hide details in visible output
Hide details in visible output
