@@ -152,7 +152,7 @@ class CommonTests:
152
152
b .login_and_go ('/system/services#/systemd-tmpfiles-clean.timer' , user = f'{ self .admin_user } @cockpit.lan' , password = self .admin_password )
153
153
b .wait_in_text ("#statuses" , "Running" )
154
154
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')" )
156
156
b .wait_in_text ("#statuses" , "Not running" )
157
157
# stopping the unit may interrupt the D-Bus proxy inspection of that unit
158
158
self .allow_journal_messages (".*systemd1:.*systemd_2dtmpfiles_2dclean_2etimer: Timeout was reached" )
@@ -165,7 +165,7 @@ class CommonTests:
165
165
b .enter_page ('/system/services' )
166
166
b .wait_in_text ("#statuses" , "Not running" )
167
167
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')" )
169
169
b .wait_in_text ("#statuses" , "Running" )
170
170
b .logout ()
171
171
@@ -190,7 +190,7 @@ class CommonTests:
190
190
# leave button should be hidden behind expander by default
191
191
b .wait_not_visible ("#realms-op-leave" )
192
192
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 " )
194
194
b .wait_visible ("#realms-leave-dialog .pf-v6-c-alert" )
195
195
# caret expander is animated and not reproducible even after a sleep
196
196
# FIXME: there is tons of subpixel noise in the fonts, impossible to match with our naïve algorithm
@@ -318,7 +318,7 @@ class CommonTests:
318
318
319
319
b .wait_in_text ("#statuses" , "Running" )
320
320
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')" )
322
322
b .wait_in_text ("#statuses" , "Not running" )
323
323
324
324
b .go ('/system' )
0 commit comments