@@ -334,22 +334,24 @@ describe('Connection string', function () {
334334      . $ ( Selectors . ConnectionModal ) 
335335      . waitForDisplayed ( {  reverse : true  } ) ; 
336336
337-     await  browser . clickVisible ( Selectors . ConnectionToastErrorDebugButton ) ; 
338-     // TODO(COMPASS-9759) we might have to opt-in via the modal once that's a thing 
339-     const  messagesElement  =  browser . $ ( Selectors . AssistantChatMessages ) ; 
340-     await  messagesElement . waitForDisplayed ( ) ; 
341-     // TODO(COMPASS-9748) check the response from the chatbot too 
342- 
343-     await  browser . waitUntil ( async  ( )  =>  { 
344-       return  ( await  messagesElement . getText ( ) ) . includes ( 
345-         'Given the error message below,' 
346-       ) ; 
347-     } ) ; 
337+     if  ( ! TEST_COMPASS_WEB )  { 
338+       await  browser . clickVisible ( Selectors . ConnectionToastErrorDebugButton ) ; 
339+       // TODO(COMPASS-9759) we might have to opt-in via the modal once that's a thing 
340+       const  messagesElement  =  browser . $ ( Selectors . AssistantChatMessages ) ; 
341+       await  messagesElement . waitForDisplayed ( ) ; 
342+       // TODO(COMPASS-9748) check the response from the chatbot too 
343+ 
344+       await  browser . waitUntil ( async  ( )  =>  { 
345+         return  ( await  messagesElement . getText ( ) ) . includes ( 
346+           'Given the error message below,' 
347+         ) ; 
348+       } ) ; 
348349
349-     // clear the chat so that a broken message doesn't break every future message 
350-     await  browser . clickVisible ( Selectors . AssistantClearChatButton ) ; 
351-     await  browser . clickVisible ( Selectors . ConfirmClearChatModalConfirmButton ) ; 
352-     await  browser . clickVisible ( Selectors . SideDrawerCloseButton ) ; 
350+       // clear the chat so that a broken message doesn't break every future message 
351+       await  browser . clickVisible ( Selectors . AssistantClearChatButton ) ; 
352+       await  browser . clickVisible ( Selectors . ConfirmClearChatModalConfirmButton ) ; 
353+       await  browser . clickVisible ( Selectors . SideDrawerCloseButton ) ; 
354+     } 
353355  } ) ; 
354356
355357  it ( 'can connect to an Atlas replicaset without srv' ,  async  function  ( )  { 
0 commit comments