This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ interface CryptoTestContext extends Mocha.Context {
27
27
}
28
28
29
29
const openRoomInfo = ( ) => {
30
- cy . get ( ".mx_RightPanel_roomSummaryButton" ) . click ( ) ;
30
+ cy . findByRole ( "button" , { name : "Room info" } ) . click ( ) ;
31
31
return cy . get ( ".mx_RightPanel" ) ;
32
32
} ;
33
33
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ const handleVerificationRequest = (request: VerificationRequest): Chainable<Emoj
60
60
const checkTimelineNarrow = ( button = true ) => {
61
61
cy . viewport ( 800 , 600 ) ; // SVGA
62
62
cy . get ( ".mx_LeftPanel_minimized" ) . should ( "exist" ) ; // Wait until the left panel is minimized
63
- cy . get ( ".mx_RightPanel_roomSummaryButton" ) . click ( ) ; // Open the right panel to make the timeline narrow
63
+ cy . findByRole ( "button" , { name : "Room info" } ) . click ( ) ; // Open the right panel to make the timeline narrow
64
64
cy . get ( ".mx_BaseCard" ) . should ( "exist" ) ;
65
65
66
66
// Ensure the failure bar does not cover the timeline
@@ -74,7 +74,7 @@ const checkTimelineNarrow = (button = true) => {
74
74
cy . get ( "[data-testid='decryption-failure-bar-button']:last-of-type" ) . should ( "be.visible" ) ;
75
75
}
76
76
77
- cy . get ( ".mx_RightPanel_roomSummaryButton" ) . click ( ) ; // Close the right panel
77
+ cy . findByRole ( "button" , { name : "Room info" } ) . click ( ) ; // Close the right panel
78
78
cy . get ( ".mx_BaseCard" ) . should ( "not.exist" ) ;
79
79
cy . viewport ( 1000 , 660 ) ; // Reset to the default size
80
80
} ;
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ const getMemberTileByName = (name: string): Chainable<JQuery<HTMLElement>> => {
29
29
30
30
const viewRoomSummaryByName = ( name : string ) : Chainable < JQuery < HTMLElement > > => {
31
31
cy . viewRoomByName ( name ) ;
32
- cy . get ( ".mx_RightPanel_roomSummaryButton" ) . click ( ) ;
32
+ cy . findByRole ( "button" , { name : "Room info" } ) . click ( ) ;
33
33
return checkRoomSummaryCard ( name ) ;
34
34
} ;
35
35
You can’t perform that action at this time.
0 commit comments