mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[Search] Re-enable test on example search app (#139961)
* [Search] Unskip ex-flaky example app test * comment out flaky test code * use es.transport.request to downsample the test index * uncomment blocked test code * remove browser refresh in beforeEach * fix ts
This commit is contained in:
parent
a26cc71578
commit
95c3893e28
2 changed files with 77 additions and 61 deletions
|
@ -107,9 +107,9 @@ export const SearchExamplesApp = ({
|
|||
const [selectedBucketField, setSelectedBucketField] = useState<
|
||||
DataViewField | null | undefined
|
||||
>();
|
||||
const [request, setRequest] = useState<Record<string, any>>({});
|
||||
const [isLoading, setIsLoading] = useState<boolean>(false);
|
||||
const [currentAbortController, setAbortController] = useState<AbortController>();
|
||||
const [request, setRequest] = useState<Record<string, any>>({});
|
||||
const [rawResponse, setRawResponse] = useState<Record<string, any>>({});
|
||||
const [warningContents, setWarningContents] = useState<SearchResponseWarning[]>([]);
|
||||
const [selectedTab, setSelectedTab] = useState(0);
|
||||
|
@ -202,6 +202,8 @@ export const SearchExamplesApp = ({
|
|||
|
||||
// Submit the search request using the `data.search` service.
|
||||
setRequest(req.params.body);
|
||||
setRawResponse({});
|
||||
setWarningContents([]);
|
||||
setIsLoading(true);
|
||||
|
||||
data.search
|
||||
|
@ -301,6 +303,8 @@ export const SearchExamplesApp = ({
|
|||
searchSource.setField('aggs', ac);
|
||||
}
|
||||
setRequest(searchSource.getSearchRequestBody());
|
||||
setRawResponse({});
|
||||
setWarningContents([]);
|
||||
const abortController = new AbortController();
|
||||
|
||||
const inspector: Required<IInspectorInfo> = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue