{# TODO: Documentation #} {# TODO: docstring from test as banner #} {% set console_log_modal_id=result.test_id ~ '-console-log' %} {% set traceback_modal_id=result.test_id ~ '-error-traceback' %} {% set result_anchor = '#' ~ result.test_id %}
    {% if result.test_description %}
  • Description: {{ result.test_description }}
  • {% endif %}
  • Start time: {{ result.start_time|pretty_datetime }}
  • End time: {{ result.end_time|pretty_datetime }}
  • Duration {{ result.duration }}
  • {% if result.traceback %}
  • {% with %} {% set modal_id=traceback_modal_id %} {% set button_content="View python traceback" %} {% include 'modal_link.html' %} {% endwith %}
  • {% endif %} {% if result.console_errors %}
  • {% with %} {% set modal_id=console_log_modal_id %} {% set button_content="View browser console errors" %} {% include 'modal_link.html' %} {% endwith %}
  • {% endif %}
{% if result.pngs %} {% include 'test_screenshots.html' %} {% else %}

No screenshots were captured for this test.

{% endif %}
{% if result.console_errors %} {% with %} {% set modal_id=console_log_modal_id %} {% set modal_title=result.test_name ~ " browser console errors" %} {% set modal_body %}

These errors were in the browser console logs at the time of the failure. This does not always indicate they are related to the test failure.

{% for error in result.console_errors %} {{ error }} {% endfor %}
{% endset %} {% include 'modal.html' %} {% endwith %} {% endif %} {% if result.traceback %} {% with %} {% set modal_id=traceback_modal_id %} {% set modal_title=result.test_name ~ " error traceback" %} {% set modal_body %}
{{ result.traceback }}
{% endset %} {% include 'modal.html' %} {% endwith %} {% endif %}