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

[Infra UI] Add infra serverless functional tests #168621

Conversation

jennypavlova
Copy link
Member

@jennypavlova jennypavlova commented Oct 11, 2023

Closes #166749

Summary

This PR adds serverless functional tests for the infra plugin. The main goal is to make sure that the app loads all the pages and successfully navigates between them. As we already have functional tests covering the whole functionality here we want to cover the differences with serverless and some basic checks ensuring that base functionality works correctly.

⚠️ The tests for the second AC point related to user roles will go in a separate issue

Test server run:
node scripts/functional_tests_server.js --config=x-pack/test_serverless/functional/test_suites/observability/config.ts
Tests run:
node scripts/functional_test_runner --config=x-pack/test_serverless/functional/test_suites/observability/config.ts --grep "Observability Infra"

@jennypavlova jennypavlova added 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 backport:skip This commit does not require backporting labels Oct 11, 2023
@jennypavlova jennypavlova self-assigned this Oct 11, 2023
@apmmachine
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • /oblt-deploy-serverless : Deploy a serverless Kibana instance using the Observability test environments.
  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@jennypavlova jennypavlova marked this pull request as ready for review October 12, 2023 16:40
@jennypavlova jennypavlova requested a review from a team as a code owner October 12, 2023 16:40
@elasticmachine
Copy link
Contributor

Pinging @elastic/infra-monitoring-ui (Team:Infra Monitoring UI)

Copy link
Contributor

@crespocarlos crespocarlos left a comment

Choose a reason for hiding this comment

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

LGTM 👏 ! Thanks for adding the tests. Just left a couple comments on minor things.


describe('#Single Host Flyout', () => {
before(async () => {
// await setHostViewEnabled(true);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need this line?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, it will be added as part of the settings in this issue so it won't be needed in this form anymore. Thanks for catching that!


describe('#Page Content', () => {
before(async () => {
// await setHostViewEnabled(true);
Copy link
Contributor

Choose a reason for hiding this comment

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

This one too.

@kibana-ci
Copy link
Collaborator

💚 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
infra 1.9MB 1.9MB +6.0B

History

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

cc @jennypavlova

@jennypavlova jennypavlova merged commit 291f5ea into elastic:main Oct 17, 2023
@jennypavlova jennypavlova deleted the 166749-infra-ui-serverless-e2e-functional-testing branch October 17, 2023 09:55
dej611 pushed a commit to dej611/kibana that referenced this pull request Oct 17, 2023
Closes elastic#166749
## Summary

This PR adds serverless functional tests for the infra plugin. The main
goal is to make sure that the app loads all the pages and successfully
navigates between them. As we already have functional tests covering the
whole functionality here we want to cover the differences with
serverless and some basic checks ensuring that base functionality works
correctly.

- Update the test to cover disabling the create rule button added
[here](elastic#167978):
([x-pack/test_serverless/functional/test_suites/observability/infra/hosts_page.ts](elastic@87fb991#diff-76bd05d3fed2c44187682e27b4030ddb9cba1a36235321e0db1b371ef6739cc9))

⚠️ The tests for the second AC point related to user roles will go in a[
separate issue ](elastic#168931)

Test server run:
`node scripts/functional_tests_server.js
--config=x-pack/test_serverless/functional/test_suites/observability/config.ts`
 Tests run: 
`node scripts/functional_test_runner
--config=x-pack/test_serverless/functional/test_suites/observability/config.ts
--grep "Observability Infra"`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting 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 v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Infra UI] Serverless e2e functional testing
6 participants