@@ -92,24 +92,17 @@ export async function chatChecks() {
9292 }
9393 }
9494 )
95- await check (
96- 'assistant conversation under Search: switch, New chat, follow-up composer' ,
97- async ( ) => {
98- await withSession ( MEMBER , async ( { page } ) => {
99- await page . goto ( url ( org . searchChat ( MEMBER_CHATS . assistant . id ) ) )
100- await expect ( modeRadio ( page , 'Assistant' ) ) . toBeChecked ( )
101- await expect ( composer ( page ) ) . toHaveAttribute ( 'placeholder' , 'Ask a follow-up…' )
102- // The Assistant takes images only: its attach button says so, and it offers no skills.
103- await expect ( page . getByRole ( 'button' , { name : 'Attach image' , exact : true } ) ) . toBeVisible ( )
104- await expect ( page . getByRole ( 'button' , { name : 'Attach file' , exact : true } ) ) . toHaveCount ( 0 )
105- await expect ( page . getByRole ( 'button' , { name : 'Skills' , exact : true } ) ) . toHaveCount ( 0 )
106- const newChat = page . getByRole ( 'button' , { name : 'New chat' , exact : true } )
107- await expect ( newChat ) . toBeVisible ( )
108- await newChat . click ( )
109- await expect ( page ) . toHaveURL ( assistantUrl ( ) )
110- } )
111- }
112- )
95+ await check ( 'assistant conversation under Search: switch, follow-up composer' , async ( ) => {
96+ await withSession ( MEMBER , async ( { page } ) => {
97+ await page . goto ( url ( org . searchChat ( MEMBER_CHATS . assistant . id ) ) )
98+ await expect ( modeRadio ( page , 'Assistant' ) ) . toBeChecked ( )
99+ await expect ( composer ( page ) ) . toHaveAttribute ( 'placeholder' , 'Ask a follow-up…' )
100+ // The Assistant takes images only: its attach button says so, and it offers no skills.
101+ await expect ( page . getByRole ( 'button' , { name : 'Attach image' , exact : true } ) ) . toBeVisible ( )
102+ await expect ( page . getByRole ( 'button' , { name : 'Attach file' , exact : true } ) ) . toHaveCount ( 0 )
103+ await expect ( page . getByRole ( 'button' , { name : 'Skills' , exact : true } ) ) . toHaveCount ( 0 )
104+ } )
105+ } )
113106 await check (
114107 'a stream survives switching to the Search view: Assistant stays mounted, inert' ,
115108 async ( ) => {
0 commit comments