@@ -1272,7 +1272,7 @@ test.describe("Timeline", () => {
12721272 // Scroll to the bottom to take a snapshot of the whole viewport
12731273 await app . timeline . scrollToBottom ( ) ;
12741274 // Assert that both avatar in the introduction and the last message are visible at the same time
1275- await expect ( page . locator ( ".mx_NewRoomIntro .mx_BaseAvatar") ) . toBeVisible ( ) ;
1275+ await expect ( page . getByTestId ( "start-chat-view" ) . locator ( " .mx_BaseAvatar") ) . toBeVisible ( ) ;
12761276 const lastEventTileIrc = page . locator ( ".mx_EventTile_last[data-layout='irc']" ) ;
12771277 await expect ( lastEventTileIrc . locator ( ".mx_MTextBody" ) . first ( ) ) . toBeVisible ( ) ;
12781278 await expect ( lastEventTileIrc . getByRole ( "status" ) ) . toHaveAccessibleName ( "Your message was sent" ) ; // rendered at the bottom of EventTile
@@ -1285,7 +1285,7 @@ test.describe("Timeline", () => {
12851285 // Make sure the strings do not overflow on modern layout
12861286 await app . settings . setValue ( "layout" , null , SettingLevel . DEVICE , Layout . Group ) ;
12871287 await app . timeline . scrollToBottom ( ) ; // Scroll again in case
1288- await expect ( page . locator ( ".mx_NewRoomIntro .mx_BaseAvatar") ) . toBeVisible ( ) ;
1288+ await expect ( page . getByTestId ( "start-chat-view" ) . locator ( " .mx_BaseAvatar") ) . toBeVisible ( ) ;
12891289 const lastEventTileGroup = page . locator ( ".mx_EventTile_last[data-layout='group']" ) ;
12901290 await expect ( lastEventTileGroup . locator ( ".mx_MTextBody" ) . first ( ) ) . toBeVisible ( ) ;
12911291 await expect ( lastEventTileGroup . getByRole ( "status" ) ) . toHaveAccessibleName ( "Your message was sent" ) ;
@@ -1297,7 +1297,7 @@ test.describe("Timeline", () => {
12971297 // Make sure the strings do not overflow on bubble layout
12981298 await app . settings . setValue ( "layout" , null , SettingLevel . DEVICE , Layout . Bubble ) ;
12991299 await app . timeline . scrollToBottom ( ) ; // Scroll again in case
1300- await expect ( page . locator ( ".mx_NewRoomIntro .mx_BaseAvatar") ) . toBeVisible ( ) ;
1300+ await expect ( page . getByTestId ( "start-chat-view" ) . locator ( " .mx_BaseAvatar") ) . toBeVisible ( ) ;
13011301 const lastEventTileBubble = page . locator ( ".mx_EventTile_last[data-layout='bubble']" ) ;
13021302 await expect ( lastEventTileBubble . locator ( ".mx_MTextBody" ) . first ( ) ) . toBeVisible ( ) ;
13031303 await expect ( lastEventTileBubble . getByRole ( "status" ) ) . toHaveAccessibleName ( "Your message was sent" ) ;
0 commit comments