@@ -21,7 +21,10 @@ test.describe('add text message', () => {
2121 await user . clicks ( ChannelPreview ) . text ( CHANNEL_NAME ) ;
2222 } ) ;
2323
24- test ( 'message list and preview button should be clear' , async ( { controller, user } ) => {
24+ test ( 'message list and preview button should be clear' , async ( {
25+ controller,
26+ user,
27+ } ) => {
2528 await controller . clearChannel ( ) ;
2629 await user . sees ( MessageList ) . empty ( ) ;
2730 await user . sees ( ChannelPreview ) ( CHANNEL_NAME ) . empty ( ) ;
@@ -32,7 +35,9 @@ test.describe('add text message', () => {
3235
3336 await user . sees ( MessageList ) . not . empty ( ) ;
3437 await user . sees ( MessageList ) . contains . nthMessage ( ADDED_MESSAGE_MAIN_LIST ) ;
35- await user . sees ( ChannelPreview ) ( CHANNEL_NAME ) . contains . lastMessage ( ADDED_MESSAGE_MAIN_LIST ) ;
38+ await user
39+ . sees ( ChannelPreview ) ( CHANNEL_NAME )
40+ . contains . lastMessage ( ADDED_MESSAGE_MAIN_LIST ) ;
3641 } ) ;
3742} ) ;
3843
@@ -47,12 +52,19 @@ test.describe('receive a message', () => {
4752 await controller . openStory ( 'add-message--user2' , selectors . channelPreviewButton ) ;
4853 } ) ;
4954
50- test ( 'channel list should update for channel members and show unread' , async ( { user } ) => {
55+ test ( 'channel list should update for channel members and show unread' , async ( {
56+ user,
57+ } ) => {
5158 await user . sees ( ChannelPreview ) ( CHANNEL_NAME ) . not . read ( ) ;
52- await user . sees ( ChannelPreview ) ( CHANNEL_NAME ) . contains . lastMessage ( ADDED_MESSAGE_MAIN_LIST ) ;
59+ await user
60+ . sees ( ChannelPreview ) ( CHANNEL_NAME )
61+ . contains . lastMessage ( ADDED_MESSAGE_MAIN_LIST ) ;
5362 } ) ;
5463
55- test ( 'message list should update for different users on the channel' , async ( { page, user } ) => {
64+ test ( 'message list should update for different users on the channel' , async ( {
65+ page,
66+ user,
67+ } ) => {
5668 await Promise . all ( [
5769 page . waitForResponse ( ( r ) => r . url ( ) . includes ( '/read' ) && r . ok ( ) ) ,
5870 user . clicks ( ChannelPreview ) . text ( CHANNEL_NAME ) ,
@@ -73,7 +85,10 @@ test.describe('reply to a message', () => {
7385 await user . clicks ( Thread ) . close ( ) ;
7486 } ) ;
7587
76- test ( 'thread with no replies contains only parent message' , async ( { controller, user } ) => {
88+ test ( 'thread with no replies contains only parent message' , async ( {
89+ controller,
90+ user,
91+ } ) => {
7792 await controller . clearChannel ( ) ;
7893 await controller . sendMessage ( ) ;
7994 await user . clicks ( MessageActions ) . reply ( ADDED_MESSAGE_MAIN_LIST ) ;
0 commit comments