Sha256: cc8a3d45d2b2034327f30c12acaab9148a2a36b7114a0587833bcd7d1a2d11b5

Contents?: true

Size: 1.38 KB

Versions: 6

Compression:

Stored size: 1.38 KB

Contents

<% if contextualization.single_visible_test_result? %>
  <div class="mu-single-test-result">
    <h5 class="text-danger mu-test-result-header"><%= render_test_result_header contextualization.affable_test_results.first %></h5>
    <%= contextualization.first_test_result_html %>
  </div>
<% else %>
  <strong><%= t :test_results %>:</strong>
  <ul class="results-list mu-multiple-test-results">
    <% contextualization.affable_test_results.each_with_index do |test_result, index| %>
      <li>
        <% if test_result[:status].failed? %>
          <span class="text-danger mu-test-result-header">
            <%= status_icon(test_result[:status]) %>
            <%= render_test_result_header test_result %>
            <% unless contextualization.visible_success_output? %>
              <a data-toggle="collapse" href="#example-result-<%= index %>"  class="example-see-more"><%= t :view_details %></a>
            <% end %>
          </span>
        <% else %>
          <span class="text-success mu-test-result-header">
            <%= status_icon(test_result[:status]) %>
            <%= test_result[:title] %>
          </span>
        <% end %>

        <div class="example-result collapse <%= 'in' if contextualization.visible_success_output? %>" id="example-result-<%= index %>">
          <%= contextualization.test_result_html test_result %>
        </div>
      </li>
    <% end %>
  </ul>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mumuki-laboratory-7.6.2 app/views/layouts/_test_results.html.erb
mumuki-laboratory-7.6.1 app/views/layouts/_test_results.html.erb
mumuki-laboratory-7.6.0 app/views/layouts/_test_results.html.erb
mumuki-laboratory-7.5.2 app/views/layouts/_test_results.html.erb
mumuki-laboratory-7.5.1 app/views/layouts/_test_results.html.erb
mumuki-laboratory-7.5.0 app/views/layouts/_test_results.html.erb