@@ -42,7 +42,7 @@ def performUserAction(browser, user, action):
42
42
43
43
def performGroupAction (browser , group , action ):
44
44
browser .click (f"#groups-list tbody tr:contains({ group } ) button.pf-v6-c-menu-toggle" )
45
- browser .click (f"#groups-list tbody tr:contains( { group } ) .pf-v6-c-menu__list-item:contains({ action } ) button" )
45
+ browser .click (f"body > .pf-v6-c-menu .pf-v6-c-menu__list-item:contains({ action } ) button" )
46
46
47
47
48
48
def createUser (
@@ -569,7 +569,7 @@ class TestAccounts(testlib.MachineCase):
569
569
b .wait (lambda : not is_locked ())
570
570
b .wait_not_present (admin_role_sel + f" .pf-v6-c-label:contains(:{ m .get_admin_group ()} )" )
571
571
b .click ("#account-groups > button" )
572
- b .click (admin_role_sel + f" li:contains({ m .get_admin_group ()} ) > button" )
572
+ b .click (f"body .pf-v6-c-menu li:contains({ m .get_admin_group ()} ) > button" )
573
573
b .wait (is_admin )
574
574
b .wait_not_present ("#account-groups-helper" )
575
575
@@ -589,7 +589,7 @@ class TestAccounts(testlib.MachineCase):
589
589
b .wait_text ("#account-user-name" , "jussi" )
590
590
b .wait_visible (admin_role_sel + f" .pf-v6-c-label:contains({ m .get_admin_group ()} )" )
591
591
b .wait_not_present ("#account-groups-helper" )
592
- b .click (f".pf-v6-c-label-group__list .pf-v6-c-label__content :contains({ m .get_admin_group ()} ) + span > button[aria-label='Close { m .get_admin_group ()} ']" )
592
+ b .click (f".pf-v6-c-label-group__list .pf-v6-c-label :contains({ m .get_admin_group ()} ) .pf-v6-c-label__actions button[aria-label='Close { m .get_admin_group ()} ']" )
593
593
b .wait (lambda : not is_admin ())
594
594
b .wait_not_present (admin_role_sel + f" .pf-v6-c-label:contains({ m .get_admin_group ()} )" )
595
595
if not m .ostree_image : # User is not shown as logged in when logged in through Cockpit
@@ -1040,7 +1040,7 @@ class TestAccounts(testlib.MachineCase):
1040
1040
# Try an invalid date
1041
1041
b .set_input_text ("#account-expiration-input input" , "blah" )
1042
1042
b .click ("#account-expiration .pf-v6-c-modal-box__footer button:contains(Change)" )
1043
- b .wait_text ("#account-expiration .pf-v6-c-form__helper-text .pf-m-error" , "Invalid expiration date" )
1043
+ b .wait_text ("#account-expiration .pf-v6-c-form__helper-text .pf-m-error" , "Invalid expiration date: error status; " )
1044
1044
1045
1045
# Now a valid date 30 days in the future
1046
1046
when = datetime .datetime .now (datetime .timezone .utc ) + datetime .timedelta (days = 30 )
@@ -1069,7 +1069,7 @@ class TestAccounts(testlib.MachineCase):
1069
1069
# Try an invalid number
1070
1070
b .set_input_text ("#password-expiration-input" , "-3" )
1071
1071
b .click ("#password-expiration .pf-v6-c-modal-box__footer button:contains(Change)" )
1072
- b .wait_text ("#password-expiration .pf-v6-c-form__helper-text .pf-m-error" , "Invalid number of days" )
1072
+ b .wait_text ("#password-expiration .pf-v6-c-form__helper-text .pf-m-error" , "Invalid number of days: error status; " )
1073
1073
1074
1074
# Expire password every 30 days
1075
1075
b .set_input_text ("#password-expiration-input" , "30" )
@@ -1216,10 +1216,11 @@ class TestAccounts(testlib.MachineCase):
1216
1216
# Primary group cannot be remove but others have a remove button
1217
1217
b .wait_visible (".pf-v6-c-label-group__list .pf-v6-c-label__content:contains(admin)" )
1218
1218
b .wait_not_present (".pf-v6-c-label-group__list .pf-v6-c-label__content:contains(admin) + span > button" )
1219
- b .wait_visible (f".pf-v6-c-label-group__list .pf-v6-c-label__content:contains({ m .get_admin_group ()} ) + span > button[aria-label='Close { m .get_admin_group ()} ']" )
1219
+ close_button = f".pf-v6-c-label-group__list .pf-v6-c-label:contains({ m .get_admin_group ()} ) .pf-v6-c-label__actions button[aria-label='Close { m .get_admin_group ()} ']"
1220
+ b .wait_visible (close_button )
1220
1221
1221
1222
# Clicking on the close button removes the group
1222
- b .click (f".pf-v6-c-label-group__list .pf-v6-c-label__content:contains( { m . get_admin_group () } ) + span > button[aria-label='Close { m . get_admin_group () } ']" )
1223
+ b .click (close_button )
1223
1224
b .wait_not_present (f".pf-v6-c-label-group__list .pf-v6-c-label__content:contains({ m .get_admin_group ()} )" )
1224
1225
b .wait_not_present (".pf-v5-c-select__menu" )
1225
1226
0 commit comments