@@ -986,7 +986,7 @@ class TestCurrentMetrics(testlib.MachineCase):
986
986
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'" )
987
987
# user services are always running underneath user@1000.service, so these two will compete for row 1 or 2
988
988
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" )
990
990
b .enter_page ("/system/services" )
991
991
b .wait_in_text (".service-name" , "/usr/bin/dd if=/dev/urandom of=/dev/null" )
992
992
@@ -1028,7 +1028,7 @@ BEGIN {{
1028
1028
b .mouse ("#current-memory-usage" , "mouseleave" )
1029
1029
1030
1030
# 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" )
1032
1032
b .enter_page ("/system/services" )
1033
1033
b .wait_in_text ("#path" , "/mem-hog.service" )
1034
1034
b .wait_in_text (".service-name" , "memhog.sh" )
@@ -1104,7 +1104,7 @@ BEGIN {{
1104
1104
m .execute ("while [ ! -e /tmp/hogged ]; do sleep 1; done" )
1105
1105
# user services are always running underneath user@1000.service, so these two will compete for row 1 or 2
1106
1106
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" )
1108
1108
b .enter_page ("/system/services" )
1109
1109
b .wait_in_text (".service-name" , "memhog.sh" )
1110
1110
0 commit comments