@@ -144,10 +144,10 @@ describe('GeneratePopoverBody', () => {
144
144
) ;
145
145
146
146
// insight button is visible
147
- const insightButton = screen . getAllByText ( 'View insight ' ) [ 0 ] ;
147
+ const insightButton = screen . getAllByText ( 'View insights ' ) [ 0 ] ;
148
148
expect ( insightButton ) . toBeInTheDocument ( ) ;
149
149
150
- // 2. Click insight button to view insight
150
+ // 2. Click insight button to view insights
151
151
fireEvent . click ( insightButton ) ;
152
152
// title is back button + 'Insight With RAG'
153
153
let backButton = getByLabelText ( 'back-to-summary' ) ;
@@ -224,7 +224,7 @@ describe('GeneratePopoverBody', () => {
224
224
) ;
225
225
226
226
// insight button is not visible
227
- expect ( screen . queryAllByLabelText ( 'View insight ' ) ) . toHaveLength ( 0 ) ;
227
+ expect ( screen . queryAllByLabelText ( 'View insights ' ) ) . toHaveLength ( 0 ) ;
228
228
// Only call http post 1 time.
229
229
expect ( mockPost ) . toHaveBeenCalledTimes ( 1 ) ;
230
230
} ) ;
@@ -286,7 +286,7 @@ describe('GeneratePopoverBody', () => {
286
286
// Show summary content although insight generation failed
287
287
expect ( getByText ( 'Generated summary content' ) ) . toBeInTheDocument ( ) ;
288
288
// insight button is not visible for this alert
289
- expect ( screen . queryAllByLabelText ( 'View insight ' ) ) . toHaveLength ( 0 ) ;
289
+ expect ( screen . queryAllByLabelText ( 'View insights ' ) ) . toHaveLength ( 0 ) ;
290
290
} ) ;
291
291
292
292
it ( 'should not display discover link if monitor type is not query_level_monitor or bucket_level_monitor' , async ( ) => {
0 commit comments