@@ -36,13 +36,13 @@ test.describe.serial('Threads', () => {
3636 await poHomeChannel . content . toggleAlsoSendThreadToChannel ( true ) ;
3737 await page . getByRole ( 'dialog' ) . locator ( '[name="msg"]' ) . last ( ) . fill ( 'This is a thread message also sent in channel' ) ;
3838 await page . keyboard . press ( 'Enter' ) ;
39- await expect ( poHomeChannel . content . lastThreadMessageText ) . toContainText ( 'This is a thread message also sent in channel' ) ;
39+ await expect ( poHomeChannel . content . lastUserThreadMessage ) . toContainText ( 'This is a thread message also sent in channel' ) ;
4040 await expect ( poHomeChannel . content . lastThreadMessagePreview ) . toContainText ( 'This is a thread message also sent in channel' ) ;
4141 } ) ;
4242 test ( 'expect open threads contextual bar when clicked on thread preview' , async ( { page } ) => {
4343 await poHomeChannel . content . lastThreadMessagePreviewText . click ( ) ;
4444 await expect ( page ) . toHaveURL ( / .* t h r e a d / ) ;
45- await expect ( poHomeChannel . content . lastThreadMessageText ) . toContainText ( 'This is a thread message also sent in channel' ) ;
45+ await expect ( poHomeChannel . content . lastUserThreadMessage ) . toContainText ( 'This is a thread message also sent in channel' ) ;
4646 } ) ;
4747 test . describe ( 'hideFlexTab Preference enabled for threads' , ( ) => {
4848 test . beforeAll ( async ( { api } ) => {
@@ -64,18 +64,18 @@ test.describe.serial('Threads', () => {
6464 test ( 'expect open threads contextual bar when clicked on thread preview' , async ( { page } ) => {
6565 await poHomeChannel . content . lastThreadMessagePreviewText . click ( ) ;
6666 await expect ( page ) . toHaveURL ( / .* t h r e a d / ) ;
67- await expect ( poHomeChannel . content . lastThreadMessageText ) . toContainText ( 'This is a thread message also sent in channel' ) ;
67+ await expect ( poHomeChannel . content . lastUserThreadMessage ) . toContainText ( 'This is a thread message also sent in channel' ) ;
6868 } ) ;
6969 test ( 'expect not to close thread contextual bar when performing some action' , async ( { page } ) => {
7070 await poHomeChannel . content . lastThreadMessagePreviewText . click ( ) ;
7171 await expect ( page ) . toHaveURL ( / .* t h r e a d / ) ;
72- await expect ( poHomeChannel . content . lastThreadMessageText ) . toContainText ( 'This is a thread message also sent in channel' ) ;
72+ await expect ( poHomeChannel . content . lastUserThreadMessage ) . toContainText ( 'This is a thread message also sent in channel' ) ;
7373
7474 await poHomeChannel . content . openLastThreadMessageMenu ( ) ;
7575 await page . locator ( 'role=menuitem[name="Copy text"]' ) . click ( ) ;
7676
7777 await expect ( page ) . toHaveURL ( / .* t h r e a d / ) ;
78- await expect ( poHomeChannel . content . lastThreadMessageText ) . toContainText ( 'This is a thread message also sent in channel' ) ;
78+ await expect ( poHomeChannel . content . lastUserThreadMessage ) . toContainText ( 'This is a thread message also sent in channel' ) ;
7979 } ) ;
8080 } ) ;
8181 test ( 'expect upload a file attachment in thread with description' , async ( { page } ) => {
@@ -131,8 +131,8 @@ test.describe.serial('Threads', () => {
131131 } ) ;
132132
133133 test ( 'expect quote the thread message' , async ( { page } ) => {
134- await poHomeChannel . content . lastThreadMessageText . hover ( ) ;
135- await poHomeChannel . content . lastThreadMessageText . getByRole ( 'button' , { name : 'Quote' } ) . click ( ) ;
134+ await poHomeChannel . content . lastUserThreadMessage . hover ( ) ;
135+ await poHomeChannel . content . lastUserThreadMessage . getByRole ( 'button' , { name : 'Quote' } ) . click ( ) ;
136136 await page . locator ( '[name="msg"]' ) . last ( ) . fill ( 'this is a quote message' ) ;
137137 await page . keyboard . press ( 'Enter' ) ;
138138
@@ -168,15 +168,15 @@ test.describe.serial('Threads', () => {
168168
169169 test ( 'expect close thread if has only one message and user press escape' , async ( { page } ) => {
170170 await expect ( page ) . toHaveURL ( / .* t h r e a d / ) ;
171- await expect ( poHomeChannel . content . lastThreadMessageText ) . toBeVisible ( ) ;
171+ await expect ( poHomeChannel . content . lastUserThreadMessage ) . toBeVisible ( ) ;
172172 await expect ( page . locator ( '[name="msg"]' ) . last ( ) ) . toBeFocused ( ) ;
173173 await page . keyboard . press ( 'Escape' ) ;
174174 await expect ( page ) . not . toHaveURL ( / .* t h r e a d / ) ;
175175 } ) ;
176176
177177 test ( 'expect reset the thread composer to original message if user presses escape' , async ( { page } ) => {
178178 await expect ( page ) . toHaveURL ( / .* t h r e a d / ) ;
179- await expect ( poHomeChannel . content . lastThreadMessageText ) . toBeVisible ( ) ;
179+ await expect ( poHomeChannel . content . lastUserThreadMessage ) . toBeVisible ( ) ;
180180
181181 await expect ( page . locator ( '[name="msg"]' ) . last ( ) ) . toBeFocused ( ) ;
182182 await page . locator ( '[name="msg"]' ) . last ( ) . fill ( 'message to be edited' ) ;
@@ -193,7 +193,7 @@ test.describe.serial('Threads', () => {
193193
194194 test ( 'expect clean composer and keep the thread open if user is editing message and presses escape' , async ( { page } ) => {
195195 await expect ( page ) . toHaveURL ( / .* t h r e a d / ) ;
196- await expect ( poHomeChannel . content . lastThreadMessageText ) . toBeVisible ( ) ;
196+ await expect ( poHomeChannel . content . lastUserThreadMessage ) . toBeVisible ( ) ;
197197 await expect ( page . locator ( '[name="msg"]' ) . last ( ) ) . toBeFocused ( ) ;
198198
199199 await page . locator ( '[name="msg"]' ) . last ( ) . fill ( 'message to be edited' ) ;
0 commit comments