From 670ee7b4a83cc1f28d5787ba1f197fc02973ecf0 Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Fri, 22 Nov 2024 12:35:21 +0200 Subject: [PATCH] test: Adapt to new Grafana The #var-host id is gone, but the "dataid ... link text" stays. Cherry-picked from main commit 9d83a1c16a2ea8708. --- test/verify/check-metrics | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/verify/check-metrics b/test/verify/check-metrics index f0397517a78b..10c6aa022fce 100755 --- a/test/verify/check-metrics +++ b/test/verify/check-metrics @@ -1523,7 +1523,8 @@ class TestGrafanaClient(testlib.MachineCase): # .. and the dashboard name becomes clickable bg.click("a:contains('PCP Redis: Host Overview')") - bg.wait_in_text("#var-host", "grafana-client") + # expect the hostname in the dashboard controls + bg._wait_present("[data-testid*='link text grafana-client']") # expect a "Load average" panel with sensible numbers bg.wait_in_text("section[data-testid*='Load average'],div[data-testid*='Load average']", "minute")