Skip to content

Commit 59e0226

Browse files
committed
test: Fix check-system-realms
What remains is the bogus screen-reader text, but let's fix this more centrally.
1 parent ed650c7 commit 59e0226

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/verify/check-system-realms

+4-4
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class CommonTests:
152152
b.login_and_go('/system/services#/systemd-tmpfiles-clean.timer', user=f'{self.admin_user}@cockpit.lan', password=self.admin_password)
153153
b.wait_in_text("#statuses", "Running")
154154
b.click(".service-top-panel button.pf-v6-c-menu-toggle")
155-
b.click(".service-top-panel button.pf-v6-c-menu__item:contains('Stop')")
155+
b.click("button.pf-v6-c-menu__item:contains('Stop')")
156156
b.wait_in_text("#statuses", "Not running")
157157
# stopping the unit may interrupt the D-Bus proxy inspection of that unit
158158
self.allow_journal_messages(".*systemd1:.*systemd_2dtmpfiles_2dclean_2etimer: Timeout was reached")
@@ -165,7 +165,7 @@ class CommonTests:
165165
b.enter_page('/system/services')
166166
b.wait_in_text("#statuses", "Not running")
167167
b.click(".service-top-panel button.pf-v6-c-menu-toggle")
168-
b.click(".service-top-panel button.pf-v6-c-menu__item:contains('Start')")
168+
b.click("button.pf-v6-c-menu__item:contains('Start')")
169169
b.wait_in_text("#statuses", "Running")
170170
b.logout()
171171

@@ -190,7 +190,7 @@ class CommonTests:
190190
# leave button should be hidden behind expander by default
191191
b.wait_not_visible("#realms-op-leave")
192192
b.wait_not_visible("#realms-leave-dialog .pf-v6-c-alert")
193-
b.click("#realms-leave-dialog .pf-v6-c-expandable-section__toggle")
193+
b.click("#realms-leave-dialog .pf-v6-c-expandable-section__toggle button")
194194
b.wait_visible("#realms-leave-dialog .pf-v6-c-alert")
195195
# caret expander is animated and not reproducible even after a sleep
196196
# FIXME: there is tons of subpixel noise in the fonts, impossible to match with our naïve algorithm
@@ -318,7 +318,7 @@ class CommonTests:
318318

319319
b.wait_in_text("#statuses", "Running")
320320
b.click(".service-top-panel button.pf-v6-c-menu-toggle")
321-
b.click(".service-top-panel button.pf-v6-c-menu__item:contains('Stop')")
321+
b.click("button.pf-v6-c-menu__item:contains('Stop')")
322322
b.wait_in_text("#statuses", "Not running")
323323

324324
b.go('/system')

0 commit comments

Comments
 (0)