Skip to content

Add Component Integration Test for Opening a Closed Index#114404

Merged
cuff-links merged 10 commits intoelastic:mainfrom
cuff-links:Add_CIT_For_Open_Index_Action
Dec 20, 2021
Merged

Add Component Integration Test for Opening a Closed Index#114404
cuff-links merged 10 commits intoelastic:mainfrom
cuff-links:Add_CIT_For_Open_Index_Action

Conversation

@cuff-links
Copy link
Contributor

Summary

This PR adds a component integration test that checks that we are able to click the open index button for a closed index and check the last request to ensure that it was made to the open index API.

@cuff-links cuff-links added Feature:Index Management Index and index templates UI test-jest-integration v8.0.0 Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// release_note:skip Skip the PR/issue when compiling release notes auto-backport Deprecated - use backport:version if exact versions are needed v7.15.1 labels Oct 9, 2021
@cuff-links cuff-links marked this pull request as ready for review October 9, 2021 19:49
@cuff-links cuff-links requested a review from a team as a code owner October 9, 2021 19:49
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-stack-management (Team:Stack Management)

@cuff-links cuff-links requested review from cjcenizal, sabarasaba, sebelga and yuliacech and removed request for cjcenizal October 9, 2021 19:49
@cuff-links
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
indexManagement 523.1KB 523.2KB +36.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Member

@sabarasaba sabarasaba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this @cuff-links! Changes LGTM, just had a suggestions for simplifying the button selector and maybe abstracting the clicking logic into a new action:

Copy link
Contributor

@yuliacech yuliacech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @cuff-links, let me know if I can help you with this PR, it probably needs some updates since #114900 merged.

@cuff-links
Copy link
Contributor Author

This PR is waiting on the merging of #120912 to correct the CI errors happening.

@sebelga
Copy link
Contributor

sebelga commented Dec 14, 2021

@elasticmachine merge upstream

@mistic mistic added the v7.17.0 label Dec 16, 2021
@cuff-links
Copy link
Contributor Author

@elasticmachine merge upstream

Copy link
Member

@sabarasaba sabarasaba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing the tests @cuff-links! I left two small comments that I think we should address before merging 🚀

@sabarasaba
Copy link
Member

@elasticmachine merge upstream

@kibana-ci
Copy link

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@cuff-links cuff-links merged commit b7ace80 into elastic:main Dec 20, 2021
@kibanamachine
Copy link
Contributor

💔 Backport failed

Status Branch Result
8.0 Commit could not be cherrypicked due to conflicts
7.17 Commit could not be cherrypicked due to conflicts

To backport manually run:
node scripts/backport --pr 114404

cuff-links pushed a commit to cuff-links/kibana that referenced this pull request Dec 20, 2021
…4404)

* Added Component Integration Test for Opening A closed Index.

* Fixed open index test and changed the structure of the tests to consolidate boilerplate.

* Fixed PR based on feedback.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/index_management/__jest__/client_integration/home/indices_tab.test.ts
cuff-links pushed a commit to cuff-links/kibana that referenced this pull request Dec 20, 2021
…4404)

* Added Component Integration Test for Opening A closed Index.

* Fixed open index test and changed the structure of the tests to consolidate boilerplate.

* Fixed PR based on feedback.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/index_management/__jest__/client_integration/home/indices_tab.test.ts
cuff-links pushed a commit that referenced this pull request Dec 22, 2021
…4404) (#121708)

* Add Component Integration Test for Opening a Closed Index (#114404)

* Added Component Integration Test for Opening A closed Index.

* Fixed open index test and changed the structure of the tests to consolidate boilerplate.

* Fixed PR based on feedback.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/index_management/__jest__/client_integration/home/indices_tab.test.ts

* Fixed test.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
mibragimov pushed a commit to mibragimov/kibana that referenced this pull request Dec 22, 2021
…4404)

* Added Component Integration Test for Opening A closed Index.

* Fixed open index test and changed the structure of the tests to consolidate boilerplate.

* Fixed PR based on feedback.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.

@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Dec 22, 2021
cuff-links pushed a commit that referenced this pull request Dec 23, 2021
…121706)

* Added Component Integration Test for Opening A closed Index.

* Fixed open index test and changed the structure of the tests to consolidate boilerplate.

* Fixed PR based on feedback.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/index_management/__jest__/client_integration/home/indices_tab.test.ts
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Dec 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Deprecated - use backport:version if exact versions are needed Feature:Index Management Index and index templates UI release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// test-jest-integration v7.17.0 v8.0.0 v8.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants