Skip to content

Commit

Permalink
test: Adapt to new Grafana
Browse files Browse the repository at this point in the history
The #var-host id is gone, but the "dataid ... link text" stays.

Cherry-picked from main commit 9d83a1c.
  • Loading branch information
mvollmer authored and martinpitt committed Nov 24, 2024
1 parent c5401d6 commit 670ee7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/verify/check-metrics
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 670ee7b

Please sign in to comment.