Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Stack monitoring] Fix clusters functional tests when react is enabled #114982

Merged
merged 2 commits into from
Oct 14, 2021

Conversation

estermv
Copy link
Contributor

@estermv estermv commented Oct 14, 2021

Summary

Closes #114821

Reviewer notes

  • Enable react migration by setting render_react_app to true
  • start test server node scripts/functional_tests_server --config x-pack/test/functional/config.js
  • Run node scripts/functional_test_runner --config x-pack/test/functional/config.js --grep "Monitoring app Cluster" to execute only cluster listing and cluster overview page.

@estermv estermv added v8.0.0 Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services release_note:skip Skip the PR/issue when compiling release notes Feature:Stack Monitoring auto-backport Deprecated - use backport:version if exact versions are needed v7.16.0 Epic: Stack Monitoring de-angularization labels Oct 14, 2021
@estermv estermv requested a review from a team as a code owner October 14, 2021 11:33
@estermv estermv requested review from a team October 14, 2021 11:33
@elasticmachine
Copy link
Contributor

Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui)

@@ -299,7 +299,7 @@ <h1 class="euiTitle euiTitle--xsmall">{{pageTitle || monitoringMain.instance}}</
</div>

<div ng-if="monitoringMain.inOverview" class="euiTabs" role="navigation">
<a class="euiTab" data-test-subj="clusterName">{{ pageData.cluster_name }}</a>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since the page structure is different in react and in angular, I changed the test-subj to be more specific so tests works in both versions.

@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
monitoring 1.1MB 1.1MB +25.0B

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

@neptunian
Copy link
Contributor

Will these changes fix the current failing test related to the cluster listing? https://github.com/elastic/kibana/pull/114436/checks?check_run_id=3895050323

@estermv estermv merged commit cdce98c into elastic:master Oct 14, 2021
@estermv
Copy link
Contributor Author

estermv commented Oct 14, 2021

Will these changes fix the current failing test related to the cluster listing? https://github.com/elastic/kibana/pull/114436/checks?check_run_id=3895050323

@neptunian I think so, I got the same test failing locally before fixing the pathname check.

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 14, 2021
elastic#114982)

* Fix test subjects for overview page

* fix pathname matching
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Oct 14, 2021
#114982) (#115012)

* Fix test subjects for overview page

* fix pathname matching

Co-authored-by: Ester Martí Vilaseca <ester.martivilaseca@elastic.co>
artem-shelkovnikov pushed a commit to artem-shelkovnikov/kibana that referenced this pull request Oct 20, 2021
elastic#114982)

* Fix test subjects for overview page

* fix pathname matching
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 Epic: Stack Monitoring de-angularization Feature:Stack Monitoring release_note:skip Skip the PR/issue when compiling release notes Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.16.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Stack monitoring] Clusters functional tests
4 participants