@@ -45,7 +45,7 @@ const expectDisplayName = (e: JQuery<HTMLElement>, displayName: string): void =>
4545const expectAvatar = ( e : JQuery < HTMLElement > , avatarUrl : string ) : void => {
4646 cy . all ( [ cy . window ( { log : false } ) , cy . getClient ( ) ] ) . then ( ( [ win , cli ] ) => {
4747 const size = AVATAR_SIZE * win . devicePixelRatio ;
48- expect ( e . find ( ".mx_BaseAvatar_image " ) . attr ( "src" ) ) . to . equal (
48+ expect ( e . find ( ".mx_BaseAvatar img " ) . attr ( "src" ) ) . to . equal (
4949 // eslint-disable-next-line no-restricted-properties
5050 cli . mxcUrlToHttp ( avatarUrl , size , size , AVATAR_RESIZE_METHOD ) ,
5151 ) ;
@@ -197,10 +197,10 @@ describe("Timeline", () => {
197197
198198 cy . get ( ".mx_GenericEventListSummary" ) . within ( ( ) => {
199199 // Click "expand" link button
200- cy . findByRole ( "button" , { name : "expand " } ) . click ( ) ;
200+ cy . findByRole ( "button" , { name : "Expand " } ) . click ( ) ;
201201
202202 // Assert that the "expand" link button worked
203- cy . findByRole ( "button" , { name : "collapse " } ) . should ( "exist" ) ;
203+ cy . findByRole ( "button" , { name : "Collapse " } ) . should ( "exist" ) ;
204204 } ) ;
205205
206206 cy . get ( ".mx_MainSplit" ) . percySnapshotElement ( "Expanded GELS on IRC layout" , { percyCSS } ) ;
@@ -224,10 +224,10 @@ describe("Timeline", () => {
224224
225225 cy . get ( ".mx_GenericEventListSummary" ) . within ( ( ) => {
226226 // Click "expand" link button
227- cy . findByRole ( "button" , { name : "expand " } ) . click ( ) ;
227+ cy . findByRole ( "button" , { name : "Expand " } ) . click ( ) ;
228228
229229 // Assert that the "expand" link button worked
230- cy . findByRole ( "button" , { name : "collapse " } ) . should ( "exist" ) ;
230+ cy . findByRole ( "button" , { name : "Collapse " } ) . should ( "exist" ) ;
231231 } ) ;
232232
233233 cy . get ( ".mx_MainSplit" ) . percySnapshotElement ( "Expanded GELS on modern layout" , { percyCSS } ) ;
@@ -247,10 +247,10 @@ describe("Timeline", () => {
247247
248248 cy . get ( ".mx_GenericEventListSummary" ) . within ( ( ) => {
249249 // Click "expand" link button
250- cy . findByRole ( "button" , { name : "expand " } ) . click ( ) ;
250+ cy . findByRole ( "button" , { name : "Expand " } ) . click ( ) ;
251251
252252 // Assert that the "expand" link button worked
253- cy . findByRole ( "button" , { name : "collapse " } ) . should ( "exist" ) ;
253+ cy . findByRole ( "button" , { name : "Collapse " } ) . should ( "exist" ) ;
254254 } ) ;
255255
256256 // Make sure spacer is not visible on bubble layout
@@ -270,10 +270,10 @@ describe("Timeline", () => {
270270 . realHover ( )
271271 . findByRole ( "toolbar" , { name : "Message Actions" } )
272272 . should ( "be.visible" ) ;
273- cy . findByRole ( "button" , { name : "collapse " } ) . click ( ) ;
273+ cy . findByRole ( "button" , { name : "Collapse " } ) . click ( ) ;
274274
275275 // Assert that "collapse" link button worked
276- cy . findByRole ( "button" , { name : "expand " } ) . should ( "exist" ) ;
276+ cy . findByRole ( "button" , { name : "Expand " } ) . should ( "exist" ) ;
277277 } ) ;
278278
279279 // Save snapshot of collapsed generic event list summary on bubble layout
@@ -292,7 +292,7 @@ describe("Timeline", () => {
292292 } ) ;
293293
294294 // Click "expand" link button
295- cy . get ( ".mx_GenericEventListSummary" ) . findByRole ( "button" , { name : "expand " } ) . click ( ) ;
295+ cy . get ( ".mx_GenericEventListSummary" ) . findByRole ( "button" , { name : "Expand " } ) . click ( ) ;
296296
297297 // Check the event line has margin instead of inset property
298298 // cf. _EventTile.pcss
@@ -388,7 +388,7 @@ describe("Timeline", () => {
388388
389389 // 2. Alignment of expanded GELS and messages
390390 // Click "expand" link button
391- cy . get ( ".mx_GenericEventListSummary" ) . findByRole ( "button" , { name : "expand " } ) . click ( ) ;
391+ cy . get ( ".mx_GenericEventListSummary" ) . findByRole ( "button" , { name : "Expand " } ) . click ( ) ;
392392 // Check inline start spacing of info line on expanded GELS
393393 cy . get ( ".mx_EventTile[data-layout=irc].mx_EventTile_info:first-of-type .mx_EventTile_line" )
394394 // See: _EventTile.pcss
0 commit comments