mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 08:56:43 -06:00
Jaeger: fix bug where query is executed twice (#38550)
* Jaeger: add empty callback to QueryField onBlur to stop query from being run twice * Jaeger: add wait call on 500ms to accomodate for debouncing by the QueryField component
This commit is contained in:
parent
a15e33e693
commit
458bced826
@ -21,7 +21,9 @@ describe('Trace view', () => {
|
|||||||
|
|
||||||
e2e.components.QueryField.container().should('be.visible').type('long-trace');
|
e2e.components.QueryField.container().should('be.visible').type('long-trace');
|
||||||
|
|
||||||
e2e.components.RefreshPicker.runButton().should('be.visible').focus();
|
e2e().wait(500);
|
||||||
|
|
||||||
|
e2e.components.RefreshPicker.runButton().should('be.visible').click();
|
||||||
|
|
||||||
e2e().wait('@longTrace');
|
e2e().wait('@longTrace');
|
||||||
|
|
||||||
|
@ -40,6 +40,7 @@ export function QueryEditor({ datasource, query, onChange, onRunQuery }: Props)
|
|||||||
query={query.query}
|
query={query.query}
|
||||||
onChange={onChangeQuery}
|
onChange={onChangeQuery}
|
||||||
onRunQuery={onRunQuery}
|
onRunQuery={onRunQuery}
|
||||||
|
onBlur={() => {}}
|
||||||
placeholder={'Enter a Trace ID (run with Shift+Enter)'}
|
placeholder={'Enter a Trace ID (run with Shift+Enter)'}
|
||||||
portalOrigin="jaeger"
|
portalOrigin="jaeger"
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user