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 feature controls functional test #114781

Merged
merged 2 commits into from
Oct 14, 2021

Conversation

klacabane
Copy link
Contributor

Summary

Fixes #114638

One test was broken as it was targeting the monitoring-main element that don't exist in react. Updated the test to target the direct child of the monitoring-main element which exists in both angular and react versions.

app-container-element

Testing

  • set render_react_app to true
  • start test server node scripts/functional_tests_server --config x-pack/test/functional/config.js
  • run tests node scripts/functional_test_runner --config x-pack/test/functional/config.js --grep "Monitoring app feature controls"
...
     └-> "after all" hook in "feature controls"
   └-> "after all" hook in "Monitoring app"

7 passing (1.0m)

@klacabane klacabane added Team:Monitoring Stack Monitoring team 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 Epic: Stack Monitoring de-angularization labels Oct 13, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/stack-monitoring (Team:Monitoring)

@elasticmachine
Copy link
Contributor

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

Copy link
Contributor

@estermv estermv left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -52,7 +52,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
basePath: '/s/custom_space',
});

const exists = await find.existsByCssSelector('monitoring-main');
const exists = await find.existsByCssSelector('.app-container');
Copy link
Contributor

Choose a reason for hiding this comment

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

This works for now, but maybe we could change it for a test-subj more descriptive?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call, will send a follow-up revision

@klacabane
Copy link
Contributor Author

Added a test-subj attribute to both angular and react containers. Ensured tests passed in both modes.

@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 +82.0B

History

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

@klacabane klacabane merged commit 29d750a into elastic:master Oct 14, 2021
@klacabane klacabane deleted the fix-feature-controls-tests branch October 14, 2021 12:33
matschaffer pushed a commit to matschaffer/kibana that referenced this pull request Oct 15, 2021
* fix feature controls functional test

* target test-subj attr instead of class
matschaffer added a commit that referenced this pull request Oct 15, 2021
…15139)

* fix feature controls functional test

* target test-subj attr instead of class

Co-authored-by: Kevin Lacabane <kevin.lacabane@elastic.co>
artem-shelkovnikov pushed a commit to artem-shelkovnikov/kibana that referenced this pull request Oct 20, 2021
* fix feature controls functional test

* target test-subj attr instead of class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Epic: Stack Monitoring de-angularization 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 Team:Monitoring Stack Monitoring team v7.16.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Stack Monitoring] feature_controls functional tests
4 participants