@@ -116,32 +116,6 @@ describe('MockDataGeneratorModal', () => {
116116 expect ( screen . queryByTestId ( 'generate-mock-data-modal' ) ) . to . not . exist ;
117117 } ) ;
118118
119- it ( 'uses the appropriate copy when Generative AI sample document passing is enabled' , async ( ) => {
120- await renderModal ( { enableGenAISampleDocumentPassing : true } ) ;
121- expect ( screen . queryByText ( 'Sample Documents Collected' ) ) . to . exist ;
122- expect (
123- screen . queryByText (
124- 'A sample of document values from your collection will be sent to an LLM for processing.'
125- )
126- ) . to . exist ;
127- // fragment from { "name": "John" }
128- expect ( screen . queryByText ( '"John"' ) ) . to . exist ;
129- expect ( screen . queryByText ( '"String"' ) ) . to . not . exist ;
130- } ) ;
131-
132- it ( 'uses the appropriate copy when Generative AI sample document passing is disabled' , async ( ) => {
133- await renderModal ( ) ;
134- expect ( screen . queryByText ( 'Document Schema Identified' ) ) . to . exist ;
135- expect (
136- screen . queryByText (
137- 'We have identified the following schema from your documents. This schema will be sent to an LLM for processing.'
138- )
139- ) . to . exist ;
140- // fragment from { "name": "String" }
141- expect ( screen . queryByText ( '"String"' ) ) . to . exist ;
142- expect ( screen . queryByText ( '"John"' ) ) . to . not . exist ;
143- } ) ;
144-
145119 it ( 'closes the modal when the close button is clicked' , async ( ) => {
146120 await renderModal ( ) ;
147121
@@ -237,6 +211,32 @@ describe('MockDataGeneratorModal', () => {
237211 ) . to . equal ( 'true' ) ;
238212 } ) ;
239213
214+ it ( 'uses the appropriate copy when Generative AI sample document passing is enabled' , async ( ) => {
215+ await renderModal ( { enableGenAISampleDocumentPassing : true } ) ;
216+ expect ( screen . queryByText ( 'Sample Documents Collected' ) ) . to . exist ;
217+ expect (
218+ screen . queryByText (
219+ 'A sample of document values from your collection will be sent to an LLM for processing.'
220+ )
221+ ) . to . exist ;
222+ // fragment from { "name": "John" }
223+ expect ( screen . queryByText ( '"John"' ) ) . to . exist ;
224+ expect ( screen . queryByText ( '"String"' ) ) . to . not . exist ;
225+ } ) ;
226+
227+ it ( 'uses the appropriate copy when Generative AI sample document passing is disabled' , async ( ) => {
228+ await renderModal ( ) ;
229+ expect ( screen . queryByText ( 'Document Schema Identified' ) ) . to . exist ;
230+ expect (
231+ screen . queryByText (
232+ 'We have identified the following schema from your documents. This schema will be sent to an LLM for processing.'
233+ )
234+ ) . to . exist ;
235+ // fragment from { "name": "String" }
236+ expect ( screen . queryByText ( '"String"' ) ) . to . exist ;
237+ expect ( screen . queryByText ( '"John"' ) ) . to . not . exist ;
238+ } ) ;
239+
240240 it ( 'renders the faker schema editor when the confirm button is clicked' , async ( ) => {
241241 await renderModal ( ) ;
242242
0 commit comments