@@ -101,24 +101,24 @@ test("a parent-owned child keeps the parent chrome and nested geometry", async (
101101 expect ( await surface . evaluate ( element => getComputedStyle ( element ) . boxShadow ) ) . not . toBe ( "none" ) ;
102102
103103 let childClose = surface . getByRole ( "button" , { name : `Close ${ childTitle } ` , exact : true } ) ;
104- let childConversationToggle = surface . getByRole ( "button" , {
105- name : "Show conversation pane" ,
104+ let childChatToggle = surface . getByRole ( "button" , {
105+ name : "Show chat pane" ,
106106 exact : true ,
107107 } ) ;
108- await expect ( childConversationToggle ) . toBeVisible ( ) ;
108+ await expect ( childChatToggle ) . toBeVisible ( ) ;
109109 let closeHandle = await childClose . elementHandle ( ) ;
110110 expect ( closeHandle ) . not . toBeNull ( ) ;
111111 expect (
112- await childConversationToggle . evaluate (
112+ await childChatToggle . evaluate (
113113 ( toggle , close ) => toggle . nextElementSibling === close ,
114114 closeHandle ,
115115 ) ,
116116 ) . toBe ( true ) ;
117- let conversationToggleBox = await childConversationToggle . boundingBox ( ) ;
117+ let chatToggleBox = await childChatToggle . boundingBox ( ) ;
118118 let childCloseBox = await childClose . boundingBox ( ) ;
119- expect ( conversationToggleBox ) . not . toBeNull ( ) ;
119+ expect ( chatToggleBox ) . not . toBeNull ( ) ;
120120 expect ( childCloseBox ) . not . toBeNull ( ) ;
121- expect ( conversationToggleBox ! . x + conversationToggleBox ! . width )
121+ expect ( chatToggleBox ! . x + chatToggleBox ! . width )
122122 . toBeLessThanOrEqual ( childCloseBox ! . x ) ;
123123
124124 let resize = page . getByRole ( "separator" , { name : "Resize Projects sidebar" } ) ;
@@ -152,15 +152,15 @@ test("a child isolates chat and decisions across every parent-owned close path",
152152 await page . setViewportSize ( { width : 1920 , height : 1080 } ) ;
153153 await join ( "ana" ) ;
154154 let parent = page . locator ( `[data-workspace-room="${ room } "]` ) ;
155- let parentConversation = parent . getByRole ( "complementary" , {
156- name : "Conversation " ,
155+ let parentChat = parent . getByRole ( "complementary" , {
156+ name : "Chat " ,
157157 includeHidden : true ,
158158 } ) ;
159159 let parentRoomMessage = `Parent room message ${ room . slice ( 0 , 8 ) } ` ;
160- let parentDraft = parentConversation . getByPlaceholder ( "Use @chopin to ask Chopin" ) ;
160+ let parentDraft = parentChat . getByPlaceholder ( "Use @chopin to ask Chopin" ) ;
161161 await parentDraft . fill ( parentRoomMessage ) ;
162- await parentConversation . getByRole ( "button" , { name : "Send message" } ) . click ( ) ;
163- await expect ( parentConversation . getByText ( parentRoomMessage , { exact : true } ) ) . toBeVisible ( ) ;
162+ await parentChat . getByRole ( "button" , { name : "Send message" } ) . click ( ) ;
163+ await expect ( parentChat . getByText ( parentRoomMessage , { exact : true } ) ) . toBeVisible ( ) ;
164164
165165 let parentScroll = parent . locator ( "[data-plan-scroll]" ) ;
166166 await parentScroll . evaluate ( element => element . scrollTop = 180 ) ;
@@ -172,45 +172,45 @@ test("a child isolates chat and decisions across every parent-owned close path",
172172 let surface = page . getByRole ( "region" , { name : `Child document: ${ childTitle } ` } ) ;
173173 let parentHeader = parent . locator ( ".room-header" ) ;
174174 let childClose = surface . getByRole ( "button" , { name : `Close ${ childTitle } ` , exact : true } ) ;
175- let childConversationToggle = surface . getByRole ( "button" , {
176- name : "Show conversation pane" ,
175+ let childChatToggle = surface . getByRole ( "button" , {
176+ name : "Show chat pane" ,
177177 exact : true ,
178178 } ) ;
179- let childConversation = surface . getByRole ( "complementary" , { name : "Conversation " } ) ;
180- await expect ( childConversationToggle ) . toBeVisible ( ) ;
181- await expect ( childConversation ) . toBeHidden ( ) ;
182-
183- await childConversationToggle . click ( ) ;
184- await expect ( childConversation ) . toBeVisible ( ) ;
185- await expect ( childConversation ) . not . toContainText ( parentRoomMessage ) ;
186- await expect ( parentConversation ) . toContainText ( parentRoomMessage ) ;
179+ let childChat = surface . getByRole ( "complementary" , { name : "Chat " } ) ;
180+ await expect ( childChatToggle ) . toBeVisible ( ) ;
181+ await expect ( childChat ) . toBeHidden ( ) ;
182+
183+ await childChatToggle . click ( ) ;
184+ await expect ( childChat ) . toBeVisible ( ) ;
185+ await expect ( childChat ) . not . toContainText ( parentRoomMessage ) ;
186+ await expect ( parentChat ) . toContainText ( parentRoomMessage ) ;
187187 let childRoomMessage = `Child room message ${ room . slice ( 0 , 8 ) } ` ;
188188 let childPlannerMessage = `@chopin Child Planner message ${ room . slice ( 0 , 8 ) } ` ;
189189 let childPlannerTranscript = childPlannerMessage . replace ( "@chopin " , "" ) ;
190- let childDraft = childConversation . getByPlaceholder ( "Use @chopin to ask Chopin" ) ;
190+ let childDraft = childChat . getByPlaceholder ( "Use @chopin to ask Chopin" ) ;
191191 await childDraft . fill ( childRoomMessage ) ;
192- await childConversation . getByRole ( "button" , { name : "Send message" } ) . click ( ) ;
193- await expect ( childConversation . getByText ( childRoomMessage , { exact : true } ) ) . toBeVisible ( ) ;
192+ await childChat . getByRole ( "button" , { name : "Send message" } ) . click ( ) ;
193+ await expect ( childChat . getByText ( childRoomMessage , { exact : true } ) ) . toBeVisible ( ) ;
194194 await expect . poll ( chatSends ) . toContainEqual ( {
195195 channelId : child . id ,
196196 text : childRoomMessage ,
197197 to : "room" ,
198198 } ) ;
199199 await childDraft . fill ( childPlannerMessage ) ;
200- await childConversation . getByRole ( "button" , { name : "Send message" } ) . click ( ) ;
201- await expect ( childConversation . getByText ( childPlannerTranscript , { exact : true } ) ) . toBeVisible ( ) ;
200+ await childChat . getByRole ( "button" , { name : "Send message" } ) . click ( ) ;
201+ await expect ( childChat . getByText ( childPlannerTranscript , { exact : true } ) ) . toBeVisible ( ) ;
202202 await expect . poll ( chatSends ) . toContainEqual ( {
203203 channelId : child . id ,
204204 text : childPlannerMessage ,
205205 to : "planner" ,
206206 } ) ;
207- await expect ( parentConversation ) . not . toContainText ( childRoomMessage ) ;
208- await expect ( parentConversation ) . not . toContainText ( childPlannerTranscript ) ;
209- await childConversation . getByRole ( "button" , {
210- name : "Hide conversation pane" ,
207+ await expect ( parentChat ) . not . toContainText ( childRoomMessage ) ;
208+ await expect ( parentChat ) . not . toContainText ( childPlannerTranscript ) ;
209+ await childChat . getByRole ( "button" , {
210+ name : "Hide chat pane" ,
211211 exact : true ,
212212 } ) . click ( ) ;
213- await expect ( childConversation ) . toBeHidden ( ) ;
213+ await expect ( childChat ) . toBeHidden ( ) ;
214214
215215 let childEditor = surface . getByRole ( "textbox" , { name : "editable markdown" } ) ;
216216 await childEditor . locator ( "p" ) . first ( ) . selectText ( ) ;
@@ -235,19 +235,19 @@ test("a child isolates chat and decisions across every parent-owned close path",
235235 await expect . poll ( ( ) => parentScroll . evaluate ( element => element . scrollTop ) ) . toBe (
236236 parentScrollTop ,
237237 ) ;
238- await expect ( parentConversation ) . toContainText ( parentRoomMessage ) ;
238+ await expect ( parentChat ) . toContainText ( parentRoomMessage ) ;
239239
240240 await childLink . click ( ) ;
241241 await expect ( surface ) . toBeVisible ( ) ;
242- await expect ( childConversationToggle ) . toBeVisible ( ) ;
243- await expect ( childConversation ) . toBeHidden ( ) ;
244- await childConversationToggle . click ( ) ;
245- await expect ( childConversation ) . not . toContainText ( parentRoomMessage ) ;
246- await expect ( parentConversation ) . toContainText ( parentRoomMessage ) ;
247- await expect ( childConversation . getByText ( childRoomMessage , { exact : true } ) ) . toBeVisible ( ) ;
248- await expect ( childConversation . getByText ( childPlannerTranscript , { exact : true } ) ) . toBeVisible ( ) ;
249- await childConversation . getByRole ( "button" , {
250- name : "Hide conversation pane" ,
242+ await expect ( childChatToggle ) . toBeVisible ( ) ;
243+ await expect ( childChat ) . toBeHidden ( ) ;
244+ await childChatToggle . click ( ) ;
245+ await expect ( childChat ) . not . toContainText ( parentRoomMessage ) ;
246+ await expect ( parentChat ) . toContainText ( parentRoomMessage ) ;
247+ await expect ( childChat . getByText ( childRoomMessage , { exact : true } ) ) . toBeVisible ( ) ;
248+ await expect ( childChat . getByText ( childPlannerTranscript , { exact : true } ) ) . toBeVisible ( ) ;
249+ await childChat . getByRole ( "button" , {
250+ name : "Hide chat pane" ,
251251 exact : true ,
252252 } ) . click ( ) ;
253253 await parentHeader . getByRole ( "button" , { name : `Return to Test ${ room . slice ( 0 , 8 ) } ` } ) . click ( ) ;
@@ -308,17 +308,17 @@ test("an in-app child preserves and restores its mounted parent", async ({ baseU
308308 await join ( "ana" ) ;
309309
310310 let parent = page . locator ( `[data-workspace-room="${ room } "]` ) ;
311- let parentConversation = parent . getByRole ( "complementary" , {
312- name : "Conversation " ,
311+ let parentChat = parent . getByRole ( "complementary" , {
312+ name : "Chat " ,
313313 includeHidden : true ,
314314 } ) ;
315315 await expect ( parent . getByRole ( "button" , { name : "Background Work" , exact : true } ) ) . toHaveCount (
316316 0 ,
317317 ) ;
318318 let parentScroll = parent . locator ( "[data-plan-scroll]" ) ;
319- await expect ( parent . getByRole ( "separator" , { name : "Resize the conversation " } ) )
319+ await expect ( parent . getByRole ( "separator" , { name : "Resize chat " } ) )
320320 . toHaveAttribute ( "aria-valuenow" , "384" ) ;
321- await expect ( parentConversation ) . toBeVisible ( ) ;
321+ await expect ( parentChat ) . toBeVisible ( ) ;
322322 await page . evaluate ( ( ) => localStorage . setItem ( "chopin:view:document" , "decisions" ) ) ;
323323 await parent . evaluate ( element => element . setAttribute ( "data-mount-token" , "preserved" ) ) ;
324324 await parentScroll . evaluate ( element => element . scrollTop = 240 ) ;
@@ -336,14 +336,14 @@ test("an in-app child preserves and restores its mounted parent", async ({ baseU
336336 await expect ( parent ) . toHaveAttribute ( "data-mount-token" , "preserved" ) ;
337337 await expect ( parent . locator ( ".workspace-frame" ) ) . toHaveAttribute ( "inert" , "" ) ;
338338 await expect ( parent . locator ( ".workspace-frame" ) ) . toHaveAttribute ( "aria-hidden" , "true" ) ;
339- let childConversationToggle = surface . getByRole ( "button" , {
340- name : "Show conversation pane" ,
339+ let childChatToggle = surface . getByRole ( "button" , {
340+ name : "Show chat pane" ,
341341 exact : true ,
342342 } ) ;
343- let childConversation = surface . getByRole ( "complementary" , { name : "Conversation " } ) ;
344- await expect ( childConversationToggle ) . toBeVisible ( ) ;
345- await expect ( childConversation ) . toBeHidden ( ) ;
346- await expect ( parentConversation ) . toBeVisible ( ) ;
343+ let childChat = surface . getByRole ( "complementary" , { name : "Chat " } ) ;
344+ await expect ( childChatToggle ) . toBeVisible ( ) ;
345+ await expect ( childChat ) . toBeHidden ( ) ;
346+ await expect ( parentChat ) . toBeVisible ( ) ;
347347 await expect ( surface . getByRole ( "button" , { name : "Decisions" , exact : true } ) ) . toBeVisible ( ) ;
348348 await expect ( surface . getByRole ( "button" , { name : "Background Work" , exact : true } ) ) . toHaveCount (
349349 0 ,
@@ -354,21 +354,21 @@ test("an in-app child preserves and restores its mounted parent", async ({ baseU
354354 await expect ( surface . locator ( `[data-workspace-room="${ child . id } "]` ) ) . toBeVisible ( ) ;
355355 await expect ( surface . locator ( '[data-document-view="plan"]' ) ) . toBeVisible ( ) ;
356356 await expect ( surface . locator ( '[data-document-view="decisions"]' ) ) . toBeHidden ( ) ;
357- await childConversationToggle . click ( ) ;
358- await expect ( childConversation ) . toBeVisible ( ) ;
359- await expect ( parentConversation ) . toBeVisible ( ) ;
360- await childConversation . getByRole ( "button" , {
361- name : "Hide conversation pane" ,
357+ await childChatToggle . click ( ) ;
358+ await expect ( childChat ) . toBeVisible ( ) ;
359+ await expect ( parentChat ) . toBeVisible ( ) ;
360+ await childChat . getByRole ( "button" , {
361+ name : "Hide chat pane" ,
362362 exact : true ,
363363 } ) . click ( ) ;
364- await expect ( childConversation ) . toBeHidden ( ) ;
365- await expect ( parentConversation ) . toBeVisible ( ) ;
364+ await expect ( childChat ) . toBeHidden ( ) ;
365+ await expect ( parentChat ) . toBeVisible ( ) ;
366366
367367 await surface . getByRole ( "button" , { name : "Decisions" , exact : true } ) . click ( ) ;
368368 await expect ( surface . locator ( '[data-document-view="decisions"]' ) ) . toBeVisible ( ) ;
369369 await expect ( parent . locator ( '[data-document-view="decisions"]' ) ) . toBeHidden ( ) ;
370370 await surface . getByRole ( "button" , { name : "Document" , exact : true } ) . click ( ) ;
371- await expect ( childConversationToggle ) . toBeVisible ( ) ;
371+ await expect ( childChatToggle ) . toBeVisible ( ) ;
372372
373373 await page . keyboard . press ( "Escape" ) ;
374374 await expect ( page ) . toHaveURL ( url =>
@@ -379,13 +379,13 @@ test("an in-app child preserves and restores its mounted parent", async ({ baseU
379379 await expect ( surface ) . toHaveCount ( 0 ) ;
380380 await expect ( childLink ) . toBeFocused ( ) ;
381381 await expect . poll ( ( ) => parentScroll . evaluate ( element => element . scrollTop ) ) . toBe ( originalScroll ) ;
382- await expect ( parentConversation ) . toBeVisible ( ) ;
382+ await expect ( parentChat ) . toBeVisible ( ) ;
383383
384384 await childLink . click ( ) ;
385385 await expect ( surface ) . toBeVisible ( ) ;
386- await expect ( childConversationToggle ) . toBeVisible ( ) ;
387- await expect ( childConversation ) . toBeHidden ( ) ;
388- await expect ( parentConversation ) . toBeVisible ( ) ;
386+ await expect ( childChatToggle ) . toBeVisible ( ) ;
387+ await expect ( childChat ) . toBeHidden ( ) ;
388+ await expect ( parentChat ) . toBeVisible ( ) ;
389389 await page . goBack ( ) ;
390390 await expect ( surface ) . toHaveCount ( 0 ) ;
391391 await expect ( childLink ) . toBeFocused ( ) ;
@@ -588,10 +588,10 @@ test("a recovered child id enters the canonical anchored child workspace", async
588588 await expect ( parent ) . toBeVisible ( ) ;
589589 await expect ( surface . locator ( `[data-workspace-room="${ child . id } "]` ) ) . toBeVisible ( ) ;
590590 await expect ( surface . getByRole ( "button" , {
591- name : "Show conversation pane" ,
591+ name : "Show chat pane" ,
592592 exact : true ,
593593 } ) ) . toBeVisible ( ) ;
594- await expect ( surface . getByRole ( "complementary" , { name : "Conversation " } ) ) . toBeHidden ( ) ;
594+ await expect ( surface . getByRole ( "complementary" , { name : "Chat " } ) ) . toBeHidden ( ) ;
595595 let close = surface . getByRole ( "button" , { name : `Close ${ childTitle } ` , exact : true } ) ;
596596 await expect ( close ) . toBeVisible ( ) ;
597597 await expect (
@@ -686,14 +686,14 @@ test("a direct compact child fills the canvas and reduces motion to a crossfade"
686686 let navigation = surface . getByRole ( "navigation" , { name : "Workspace view" } ) ;
687687 let destinations = navigation . getByRole ( "button" ) ;
688688 await expect ( destinations ) . toHaveCount ( 3 ) ;
689- await expect ( navigation . getByRole ( "button" , { name : / ^ C o n v e r s a t i o n / } ) ) . toBeVisible ( ) ;
689+ await expect ( navigation . getByRole ( "button" , { name : / ^ C h a t / } ) ) . toBeVisible ( ) ;
690690 await expect ( navigation . getByRole ( "button" , { name : "Document" , exact : true } ) ) . toBeVisible ( ) ;
691691 await expect ( navigation . getByRole ( "button" , { name : / ^ D e c i s i o n s / } ) ) . toBeVisible ( ) ;
692- await navigation . getByRole ( "button" , { name : / ^ C o n v e r s a t i o n / } ) . click ( ) ;
693- await expect ( surface . getByRole ( "complementary" , { name : "Conversation " } ) ) . toBeVisible ( ) ;
692+ await navigation . getByRole ( "button" , { name : / ^ C h a t / } ) . click ( ) ;
693+ await expect ( surface . getByRole ( "complementary" , { name : "Chat " } ) ) . toBeVisible ( ) ;
694694 await expect ( surface . locator ( '[data-document-view="plan"]' ) ) . toBeHidden ( ) ;
695695 await navigation . getByRole ( "button" , { name : "Document" , exact : true } ) . click ( ) ;
696- await expect ( surface . getByRole ( "complementary" , { name : "Conversation " } ) ) . toBeHidden ( ) ;
696+ await expect ( surface . getByRole ( "complementary" , { name : "Chat " } ) ) . toBeHidden ( ) ;
697697 await expect ( surface . locator ( '[data-document-view="plan"]' ) ) . toBeVisible ( ) ;
698698 let projects = page . getByRole ( "button" , { name : "Open Projects sidebar" } ) ;
699699 await projects . click ( ) ;
0 commit comments