Sha256: d828d04d303a98fba17faf1655d558cf5b3f4f78c2d7e26ac63e244e4a078c73

Contents?: true

Size: 1.42 KB

Versions: 4

Compression:

Stored size: 1.42 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-bs-toggle="collapse" href="#example-result-<%= index %>" class="badge bg-light text-dark mu-view-details"><%= t :view_details %></a>
            <% end %>
          </span>
        <% else %>
          <span class="text-success mu-test-result-header">
            <%= status_icon(test_result[:status]) %>
            <%= render_test_result_header test_result %>
          </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

4 entries across 4 versions & 1 rubygems

Version Path
mumuki-laboratory-9.1.3 app/views/layouts/_test_results.html.erb
mumuki-laboratory-9.1.2 app/views/layouts/_test_results.html.erb
mumuki-laboratory-9.1.1 app/views/layouts/_test_results.html.erb
mumuki-laboratory-9.1.0 app/views/layouts/_test_results.html.erb