Search: Change copy to Search with Grafana Assistant (#113609)
This commit is contained in:
@@ -44,7 +44,7 @@ describe('CommandPalette', () => {
|
||||
// Check if empty state message is rendered
|
||||
expect(await screen.findByText('No results found')).toBeInTheDocument();
|
||||
// Check if AI Assistant button is rendered with correct props
|
||||
expect(screen.getByRole('button', { name: 'Try searching with Grafana Assistant' })).toBeInTheDocument();
|
||||
expect(screen.getByRole('button', { name: 'Search with Grafana Assistant' })).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('should render empty state without AI Assistant button when assistant is not available', async () => {
|
||||
@@ -55,6 +55,6 @@ describe('CommandPalette', () => {
|
||||
// Check if empty state message is rendered
|
||||
expect(await screen.findByText('No results found')).toBeInTheDocument();
|
||||
// Check that AI Assistant button is not rendered
|
||||
expect(screen.queryByRole('button', { name: 'Try searching with Grafana Assistant' })).not.toBeInTheDocument();
|
||||
expect(screen.queryByRole('button', { name: 'Search with Grafana Assistant' })).not.toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -189,7 +189,7 @@ const RenderResults = ({ isFetchingSearchResults, searchResults, searchQuery }:
|
||||
<OpenAssistantButton
|
||||
origin="grafana/command-palette-empty-state"
|
||||
prompt={`Search for ${searchQuery}`}
|
||||
title={t('command-palette.empty-state.button-title', 'Try searching with Grafana Assistant')}
|
||||
title={t('command-palette.empty-state.button-title', 'Search with Grafana Assistant')}
|
||||
onClick={query.toggle}
|
||||
/>
|
||||
)}
|
||||
|
||||
@@ -4130,7 +4130,7 @@
|
||||
"scopes": "Scopes"
|
||||
},
|
||||
"empty-state": {
|
||||
"button-title": "Try searching with Grafana Assistant",
|
||||
"button-title": "Search with Grafana Assistant",
|
||||
"message": "No results found"
|
||||
},
|
||||
"scopes": {
|
||||
|
||||
Reference in New Issue
Block a user