@@ -85,9 +85,7 @@ describe('AssistantChat', function () {
8585 it ( 'renders input field and send button' , function ( ) {
8686 renderWithChat ( [ ] ) ;
8787
88- const inputField = screen . getByPlaceholderText (
89- 'Ask MongoDB Assistant a question'
90- ) ;
88+ const inputField = screen . getByPlaceholderText ( 'Ask a question' ) ;
9189 const sendButton = screen . getByLabelText ( 'Send message' ) ;
9290
9391 expect ( inputField ) . to . exist ;
@@ -99,7 +97,7 @@ describe('AssistantChat', function () {
9997
10098 // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
10199 const inputField = screen . getByPlaceholderText (
102- 'Ask MongoDB Assistant a question'
100+ 'Ask a question'
103101 ) as HTMLTextAreaElement ;
104102
105103 userEvent . type ( inputField , 'What is MongoDB?' ) ;
@@ -109,9 +107,8 @@ describe('AssistantChat', function () {
109107
110108 it ( 'displays the disclaimer and welcome text' , function ( ) {
111109 renderWithChat ( [ ] ) ;
112- expect ( screen . getByText ( / T h i s f e a t u r e i s p o w e r e d b y g e n e r a t i v e A I / ) ) . to
110+ expect ( screen . getByText ( / A I c a n m a k e m i s t a k e s . R e v i e w f o r a c c u r a c y . / ) ) . to
113111 . exist ;
114- expect ( screen . getByText ( / P l e a s e r e v i e w t h e o u t p u t s c a r e f u l l y / ) ) . to . exist ;
115112 } ) ;
116113
117114 it ( 'displays the welcome text when there are no messages' , function ( ) {
@@ -149,9 +146,7 @@ describe('AssistantChat', function () {
149146 it ( 'send button is enabled when input has text' , function ( ) {
150147 renderWithChat ( [ ] ) ;
151148
152- const inputField = screen . getByPlaceholderText (
153- 'Ask MongoDB Assistant a question'
154- ) ;
149+ const inputField = screen . getByPlaceholderText ( 'Ask a question' ) ;
155150 // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
156151 const sendButton = screen . getByLabelText (
157152 'Send message'
@@ -165,9 +160,7 @@ describe('AssistantChat', function () {
165160 it ( 'send button is disabled for whitespace-only input' , async function ( ) {
166161 renderWithChat ( [ ] ) ;
167162
168- const inputField = screen . getByPlaceholderText (
169- 'Ask MongoDB Assistant a question'
170- ) ;
163+ const inputField = screen . getByPlaceholderText ( 'Ask a question' ) ;
171164 // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
172165 const sendButton = screen . getByLabelText (
173166 'Send message'
@@ -246,9 +239,7 @@ describe('AssistantChat', function () {
246239 it ( 'calls sendMessage when form is submitted' , async function ( ) {
247240 const { result, ensureOptInAndSendStub } = renderWithChat ( [ ] ) ;
248241 const { track } = result ;
249- const inputField = screen . getByPlaceholderText (
250- 'Ask MongoDB Assistant a question'
251- ) ;
242+ const inputField = screen . getByPlaceholderText ( 'Ask a question' ) ;
252243 const sendButton = screen . getByLabelText ( 'Send message' ) ;
253244
254245 userEvent . type ( inputField , 'What is aggregation?' ) ;
@@ -268,7 +259,7 @@ describe('AssistantChat', function () {
268259
269260 // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
270261 const inputField = screen . getByPlaceholderText (
271- 'Ask MongoDB Assistant a question'
262+ 'Ask a question'
272263 ) as HTMLTextAreaElement ;
273264
274265 userEvent . type ( inputField , 'Test message' ) ;
@@ -282,9 +273,7 @@ describe('AssistantChat', function () {
282273 const { ensureOptInAndSendStub, result } = renderWithChat ( [ ] ) ;
283274 const { track } = result ;
284275
285- const inputField = screen . getByPlaceholderText (
286- 'Ask MongoDB Assistant a question'
287- ) ;
276+ const inputField = screen . getByPlaceholderText ( 'Ask a question' ) ;
288277
289278 userEvent . type ( inputField , ' What is sharding? ' ) ;
290279 userEvent . click ( screen . getByLabelText ( 'Send message' ) ) ;
@@ -301,9 +290,7 @@ describe('AssistantChat', function () {
301290 it ( 'does not call ensureOptInAndSend when input is empty or whitespace-only' , function ( ) {
302291 const { ensureOptInAndSendStub } = renderWithChat ( [ ] ) ;
303292
304- const inputField = screen . getByPlaceholderText (
305- 'Ask MongoDB Assistant a question'
306- ) ;
293+ const inputField = screen . getByPlaceholderText ( 'Ask a question' ) ;
307294 const chatForm = screen . getByTestId ( 'assistant-chat-input' ) ;
308295
309296 // Test empty input
0 commit comments