test(alerts): the widget test reads the time as |ago writes it (#5510)
CI / lint (push) Successful in 2s
CI / integration (push) Successful in 1m10s
CI / unit (push) Successful in 1m27s
CI / publish (push) Successful in 1m26s

Under an hour |ago says "12m 3s ago", so the test looks for the minutes
alone; the reading cell drops an empty class.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-09 16:31:57 -04:00
co-authored by Claude Opus 5.5
parent 57e1960dc1
commit 715ddfd72f
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -38,7 +38,7 @@
<span class="w-sub">{{ rule.resource_name }} · fires on {{ r.condition }}</span>
{%- endif %}
</td>
<td class="{{ 'tone-crit' if r.label == 'firing' else ('tone-warn' if r.label == 'pending') }}">
<td{% if r.label in ("firing", "pending") %} class="{{ 'tone-crit' if r.label == 'firing' else 'tone-warn' }}"{% endif %}>
{%- if r.label == "no_data" %}—{% else %}{{ metric_value(rule.metric_name, r.value) }}{% endif -%}
</td>
<td>{% if r.since %}{{ r.since|ago }}{% else %}—{% endif %}</td>