mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Loki: Rename "explain" toggle to "explain query" (#61150)
* feat: rename explain toggle to explain query * test: correct failing test for explain toggle * docs: update documentation on explain query toggle * fix: update capitalization
This commit is contained in:
@@ -107,7 +107,7 @@ describe('LokiQueryEditorSelector', () => {
|
||||
it('Can enable explain', async () => {
|
||||
renderWithMode(QueryEditorMode.Builder);
|
||||
expect(screen.queryByText(EXPLAIN_LABEL_FILTER_CONTENT)).not.toBeInTheDocument();
|
||||
screen.getByLabelText('Explain').click();
|
||||
screen.getByLabelText('Explain query').click();
|
||||
expect(await screen.findByText(EXPLAIN_LABEL_FILTER_CONTENT)).toBeInTheDocument();
|
||||
});
|
||||
|
||||
|
||||
@@ -136,7 +136,7 @@ export const LokiQueryEditor = React.memo<LokiQueryEditorProps>((props) => {
|
||||
Label browser
|
||||
</Button>
|
||||
</Stack>
|
||||
<QueryHeaderSwitch label="Explain" value={explain} onChange={onExplainChange} />
|
||||
<QueryHeaderSwitch label="Explain query" value={explain} onChange={onExplainChange} />
|
||||
<FlexItem grow={1} />
|
||||
{app !== CoreApp.Explore && (
|
||||
<Button
|
||||
|
||||
Reference in New Issue
Block a user