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:
Olof Bourghardt 2021-08-27 10:36:18 +02:00 committed by GitHub
parent a15e33e693
commit 458bced826
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -21,7 +21,9 @@ describe('Trace view', () => {
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');

View File

@ -40,6 +40,7 @@ export function QueryEditor({ datasource, query, onChange, onRunQuery }: Props)
query={query.query}
onChange={onChangeQuery}
onRunQuery={onRunQuery}
onBlur={() => {}}
placeholder={'Enter a Trace ID (run with Shift+Enter)'}
portalOrigin="jaeger"
/>