@@ -62,48 +62,48 @@ test.describe.serial('channel-management', () => {
6262 await poHomeChannel . navbar . openChat ( targetChannel ) ;
6363 await poHomeChannel . roomToolbar . openRoomInfo ( ) ;
6464 await poHomeChannel . tabs . room . btnEdit . click ( ) ;
65- await poHomeChannel . tabs . room . inputTopic . fill ( 'hello-topic-edited' ) ;
66- await poHomeChannel . tabs . room . btnSave . click ( ) ;
65+ await poHomeChannel . tabs . editRoom . inputTopic . fill ( 'hello-topic-edited' ) ;
66+ await poHomeChannel . tabs . editRoom . btnSave . click ( ) ;
6767
6868 await poHomeChannel . toastMessage . dismissToast ( ) ;
6969 await poHomeChannel . roomToolbar . openRoomInfo ( ) ;
7070
71- await expect ( poHomeChannel . tabs . room . panelChannelInfo ) . toContainText ( 'hello-topic-edited' ) ;
71+ await expect ( poHomeChannel . tabs . room . root ) . toContainText ( 'hello-topic-edited' ) ;
7272 await expect ( poHomeChannel . content . getSystemMessageByText ( 'changed room topic to hello-topic-edited' ) ) . toBeVisible ( ) ;
7373 } ) ;
7474
7575 test ( 'should edit announcement of targetChannel' , async ( ) => {
7676 await poHomeChannel . navbar . openChat ( targetChannel ) ;
7777 await poHomeChannel . roomToolbar . openRoomInfo ( ) ;
7878 await poHomeChannel . tabs . room . btnEdit . click ( ) ;
79- await poHomeChannel . tabs . room . inputAnnouncement . fill ( 'hello-announcement-edited' ) ;
80- await poHomeChannel . tabs . room . btnSave . click ( ) ;
79+ await poHomeChannel . tabs . editRoom . inputAnnouncement . fill ( 'hello-announcement-edited' ) ;
80+ await poHomeChannel . tabs . editRoom . btnSave . click ( ) ;
8181
8282 await poHomeChannel . toastMessage . dismissToast ( ) ;
8383 await poHomeChannel . roomToolbar . openRoomInfo ( ) ;
84- await expect ( poHomeChannel . tabs . room . panelChannelInfo ) . toContainText ( 'hello-announcement-edited' ) ;
84+ await expect ( poHomeChannel . tabs . room . root ) . toContainText ( 'hello-announcement-edited' ) ;
8585 await expect ( poHomeChannel . content . getSystemMessageByText ( 'changed room announcement to: hello-announcement-edited' ) ) . toBeVisible ( ) ;
8686 } ) ;
8787
8888 test ( 'should edit description of targetChannel' , async ( ) => {
8989 await poHomeChannel . navbar . openChat ( targetChannel ) ;
9090 await poHomeChannel . roomToolbar . openRoomInfo ( ) ;
9191 await poHomeChannel . tabs . room . btnEdit . click ( ) ;
92- await poHomeChannel . tabs . room . inputDescription . fill ( 'hello-description-edited' ) ;
93- await poHomeChannel . tabs . room . btnSave . click ( ) ;
92+ await poHomeChannel . tabs . editRoom . inputDescription . fill ( 'hello-description-edited' ) ;
93+ await poHomeChannel . tabs . editRoom . btnSave . click ( ) ;
9494
9595 await poHomeChannel . toastMessage . dismissToast ( ) ;
9696 await poHomeChannel . roomToolbar . openRoomInfo ( ) ;
97- await expect ( poHomeChannel . tabs . room . panelChannelInfo ) . toContainText ( 'hello-description-edited' ) ;
97+ await expect ( poHomeChannel . tabs . room . root ) . toContainText ( 'hello-description-edited' ) ;
9898 await expect ( poHomeChannel . content . getSystemMessageByText ( 'changed room description to: hello-description-edited' ) ) . toBeVisible ( ) ;
9999 } ) ;
100100
101101 test ( 'should edit name of targetChannel' , async ( { page } ) => {
102102 await poHomeChannel . navbar . openChat ( targetChannel ) ;
103103 await poHomeChannel . roomToolbar . openRoomInfo ( ) ;
104104 await poHomeChannel . tabs . room . btnEdit . click ( ) ;
105- await poHomeChannel . tabs . room . inputName . fill ( `NAME-EDITED-${ targetChannel } ` ) ;
106- await poHomeChannel . tabs . room . btnSave . click ( ) ;
105+ await poHomeChannel . tabs . editRoom . inputName . fill ( `NAME-EDITED-${ targetChannel } ` ) ;
106+ await poHomeChannel . tabs . editRoom . btnSave . click ( ) ;
107107
108108 targetChannel = `NAME-EDITED-${ targetChannel } ` ;
109109 await expect ( page . getByRole ( 'main' ) . getByRole ( 'heading' , { name : targetChannel } ) ) . toBeVisible ( ) ;
@@ -117,8 +117,8 @@ test.describe.serial('channel-management', () => {
117117 await poHomeChannel . navbar . openChat ( targetChannel ) ;
118118 await poHomeChannel . roomToolbar . openRoomInfo ( ) ;
119119 await poHomeChannel . tabs . room . btnEdit . click ( ) ;
120- await poHomeChannel . tabs . room . inputName . fill ( hugeName ) ;
121- await poHomeChannel . tabs . room . btnSave . click ( ) ;
120+ await poHomeChannel . tabs . editRoom . inputName . fill ( hugeName ) ;
121+ await poHomeChannel . tabs . editRoom . btnSave . click ( ) ;
122122 targetChannel = hugeName ;
123123
124124 await page . setViewportSize ( { width : 640 , height : 460 } ) ;
@@ -166,8 +166,8 @@ test.describe.serial('channel-management', () => {
166166
167167 test ( 'should edit notification preferences of targetChannel' , async ( ) => {
168168 await poHomeChannel . navbar . openChat ( targetChannel ) ;
169- await poHomeChannel . tabs . kebab . click ( { force : true } ) ;
170- await poHomeChannel . tabs . btnNotificationPreferences . click ( { force : true } ) ;
169+ await poHomeChannel . roomToolbar . openMoreOptions ( ) ;
170+ await poHomeChannel . roomToolbar . menuItemNotificationsPreferences . click ( ) ;
171171 await poHomeChannel . tabs . notificationPreferences . updateAllNotificationPreferences ( ) ;
172172 await poHomeChannel . tabs . notificationPreferences . btnSave . click ( ) ;
173173
@@ -256,8 +256,8 @@ test.describe.serial('channel-management', () => {
256256 await poHomeChannel . tabs . members . showAllUsers ( ) ;
257257 await poHomeChannel . tabs . members . ignoreUser ( 'user1' ) ;
258258
259- await poHomeChannel . tabs . members . openMoreActions ( ) ;
260- await expect ( poHomeChannel . tabs . members . getMenuItemAction ( 'Unignore' ) ) . toBeVisible ( ) ;
259+ await poHomeChannel . tabs . members . userInfo . openMoreActions ( ) ;
260+ await expect ( poHomeChannel . tabs . members . userInfo . menu . getMenuItem ( 'Unignore' ) ) . toBeVisible ( ) ;
261261 await page . keyboard . press ( 'Escape' ) ;
262262
263263 const user1Channel = new HomeChannel ( user1Page ) ;
@@ -296,8 +296,8 @@ test.describe.serial('channel-management', () => {
296296 await poHomeChannel . tabs . members . showAllUsers ( ) ;
297297 await poHomeChannel . tabs . members . unignoreUser ( 'user1' ) ;
298298
299- await poHomeChannel . tabs . members . openMoreActions ( ) ;
300- await expect ( poHomeChannel . tabs . members . getMenuItemAction ( 'Ignore' ) ) . toBeVisible ( ) ;
299+ await poHomeChannel . tabs . members . userInfo . openMoreActions ( ) ;
300+ await expect ( poHomeChannel . tabs . members . userInfo . menu . getMenuItem ( 'Ignore' ) ) . toBeVisible ( ) ;
301301 await page . keyboard . press ( 'Escape' ) ;
302302
303303 await user1Channel . content . sendMessage ( 'message after being unignored' ) ;
0 commit comments