test(alerts): the widget test reads the time as |ago writes it (#5510)
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user