[Remote clusters] Fix flaky jest tests#58768
[Remote clusters] Fix flaky jest tests#58768alisonelizabeth merged 25 commits intoelastic:masterfrom
Conversation
|
Pinging @elastic/es-ui (Team:Elasticsearch UI) |
|
retest |
1 similar comment
|
retest |
|
retest |
3 similar comments
|
retest |
|
retest |
|
retest |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
retest |
1 similar comment
|
retest |
|
@elasticmachine merge upstream |
|
retest |
1 similar comment
|
retest |
|
@elasticmachine merge upstream |
sebelga
left a comment
There was a problem hiding this comment.
LGTM! I left a few comments, none blockers.
x-pack/plugins/remote_clusters/__jest__/client_integration/remote_clusters_edit.test.js
Show resolved
Hide resolved
| await nextTick(); | ||
| addRemoteClusterComponent.update(); | ||
| await act(async () => { | ||
| await nextTick(); |
There was a problem hiding this comment.
Is it possible to also have a waitFor() here instead of the nextTick + component.update()?
There was a problem hiding this comment.
Good point. Updated this to use waitFor().
| @@ -241,8 +242,10 @@ describe('<RemoteClusterList />', () => { | |||
| actions.clickBulkDeleteButton(); | |||
There was a problem hiding this comment.
Not related to the changes in this PR but I am surprised that it does not complain to update the state outside an act() call for those 2 actions
There was a problem hiding this comment.
I'm going to leave this as is for now, since it is unrelated to the current changes.
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
|
These tests have gone through CI successfully several times now, so I'm going to go ahead and merge. The latest failures were unrelated to the flakiness. |
…chore/put-all-xjson-together * 'master' of github.com:elastic/kibana: [EPM] Update UI copy to use `integration` (elastic#63077) [NP] Inline buildPointSeriesData and buildHierarchicalData dependencies (elastic#61575) [Maps] create NOT EXISTS filter for tooltip property with no value (elastic#62849) [Endpoint] Add link to Logs UI to the Host Details view (elastic#62852) [UI COPY] Fixes typo in max_shingle_size for search_as_you_type (elastic#63071) [APM] docs: add alerting examples for APM (elastic#62864) [EPM] Change PACKAGES_SAVED_OBJECT_TYPE id (elastic#62818) docs: fix rendering of bulleted list (elastic#62855) Exposed AddMessageVariables as separate component (elastic#63007) Add Data - Adding cloud reset password link to cloud instructions (elastic#62835) [ML] DF Analytics: update memory estimate after adding exclude fields (elastic#62850) [Table Vis] Fix visualization overflow (elastic#62630) [Endpoint][EPM] Endpoint depending on ingest manager to initialize (elastic#62871) [Remote clusters] Fix flaky jest tests (elastic#58768) [Discover] Hide time picker when an indexpattern without timefield is selected (elastic#62134) Move search source parsing and serializing to data (elastic#59919) [ML] Functional tests - stabilize typing in mml input (elastic#63091) [data.search.aggs]: Clean up TimeBuckets implementation (elastic#62123) [ML] Functional transform tests - stabilize source selection (elastic#63087) add embed flag to saved object url as well (elastic#62926) # Conflicts: # x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/es_index.tsx
Fixes #57762
Fixes #57997
Fixes #57998