Skip to content

Commit 6055080

Browse files
committed
test: Fix test/verify/check-metrics
1 parent 81ab6c3 commit 6055080

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/verify/check-metrics

+3-3
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ class TestCurrentMetrics(testlib.MachineCase):
986986
m.execute("su - admin -c 'XDG_RUNTIME_DIR=/run/user/$(id -u admin) systemd-run --user --collect --slice cockpittest -p CPUQuota=60% --unit cpu-userhog dd if=/dev/urandom of=/dev/null'")
987987
# user services are always running underneath user@1000.service, so these two will compete for row 1 or 2
988988
b.wait_in_text("table[aria-label='Top 5 CPU services'] tbody", "cpu-userhog")
989-
b.click("table[aria-label='Top 5 CPU services'] tbody tr:contains(cpu-userhog) td[data-label='Service'] a span")
989+
b.click("table[aria-label='Top 5 CPU services'] tbody tr:contains(cpu-userhog) td[data-label='Service'] a")
990990
b.enter_page("/system/services")
991991
b.wait_in_text(".service-name", "/usr/bin/dd if=/dev/urandom of=/dev/null")
992992

@@ -1028,7 +1028,7 @@ BEGIN {{
10281028
b.mouse("#current-memory-usage", "mouseleave")
10291029

10301030
# table entries are links to Services page
1031-
b.click("table[aria-label='Top 5 memory services'] tbody tr:nth-of-type(1) td[data-label='Service'] a span")
1031+
b.click("table[aria-label='Top 5 memory services'] tbody tr:nth-of-type(1) td[data-label='Service'] a")
10321032
b.enter_page("/system/services")
10331033
b.wait_in_text("#path", "/mem-hog.service")
10341034
b.wait_in_text(".service-name", "memhog.sh")
@@ -1104,7 +1104,7 @@ BEGIN {{
11041104
m.execute("while [ ! -e /tmp/hogged ]; do sleep 1; done")
11051105
# user services are always running underneath user@1000.service, so these two will compete for row 1 or 2
11061106
b.wait_in_text("table[aria-label='Top 5 memory services'] tbody", "mem-userhog")
1107-
b.click("table[aria-label='Top 5 memory services'] tbody tr:contains(mem-userhog) td[data-label='Service'] a span")
1107+
b.click("table[aria-label='Top 5 memory services'] tbody tr:contains(mem-userhog) td[data-label='Service'] a")
11081108
b.enter_page("/system/services")
11091109
b.wait_in_text(".service-name", "memhog.sh")
11101110

0 commit comments

Comments
 (0)