@@ -27,6 +27,12 @@ class TestRHEL8(testlib.MachineCase):
27
27
"stock" : {"address" : "10.111.113.5/20" , "image" : "rhel-8-10" , "memory_mb" : 512 }
28
28
}
29
29
30
+ def logout_pf5 (self , b ):
31
+ b .wait_visible ("#toggle-menu" )
32
+ if (b .attr ("#toggle-menu" , "aria-expanded" ) != "true" ):
33
+ b .click ("#toggle-menu" )
34
+ b .mouse ('#logout' , "click" , scrollVisible = False )
35
+
30
36
def test (self ):
31
37
dev_m = self .machine
32
38
dev_b = self .browser
@@ -52,14 +58,15 @@ class TestRHEL8(testlib.MachineCase):
52
58
dev_b .enter_page ("/system" )
53
59
dev_b .wait_in_text (".ct-overview-header-hostname" , "stock" )
54
60
dev_b .wait_in_text (".ct-overview-header-hostname" , "running Red Hat Enterprise Linux 8" )
55
- dev_b .logout ()
61
+ # Logout (needs PF5 selectors so we can't use logout())
62
+ self .logout_pf5 (dev_b )
56
63
57
64
# dev → stock: via shell Add host
58
65
dev_b .login_and_go ()
59
66
dev_b .add_machine ("10.111.113.5" )
60
67
dev_b .wait_in_text (".ct-overview-header-hostname" , "stock" )
61
68
dev_b .wait_in_text (".ct-overview-header-hostname" , "running Red Hat Enterprise Linux 8" )
62
- dev_b . logout ( )
69
+ self . logout_pf5 ( dev_b )
63
70
64
71
dev_m .stop_cockpit ()
65
72
dev_b .kill ()
@@ -75,7 +82,7 @@ class TestRHEL8(testlib.MachineCase):
75
82
stock_b .wait_in_text ("#hosts-sel" , f"admin@{ dev_hostname } " )
76
83
stock_b .enter_page ("/system" )
77
84
stock_b .wait_in_text (".ct-overview-header-hostname" , dev_hostname )
78
- stock_b . logout ( )
85
+ self . logout_pf5 ( stock_b )
79
86
80
87
# stock → dev: via shell Add host
81
88
stock_b .login_and_go ()
0 commit comments