fix(ui): strengthen scrub assertion, cover degraded vdev render path

Addresses code review: differentiate pool_scrub_line/1 FINISHED clause
with the word "finished", test the degraded-vdev callout via a second
DEGRADED pool in the fixture, and replace the generic "scrub" match
with an assertion on the full finished line.
This commit is contained in:
Carsten 2026-04-22 18:00:13 +02:00
parent f05c20ed0b
commit dd992573a1
2 changed files with 29 additions and 2 deletions

View file

@ -185,7 +185,7 @@ defmodule ServerWeb.HostDetailLive do
defp pool_scrub_line(%{"scan_state" => "FINISHED", "last_scrub_end" => end_time})
when is_binary(end_time) and end_time != "",
do: "scrub #{end_time}"
do: "scrub finished #{end_time}"
defp pool_scrub_line(%{"last_scrub_end" => end_time}) when is_binary(end_time) and end_time != "",
do: "scrub #{end_time}"