Skip to content

Add functional tests for painless lab flyout#193851

Merged
fake-haris merged 11 commits intoelastic:mainfrom
fake-haris:add-functional-tests-for-painless-lab-flyout
Sep 27, 2024
Merged

Add functional tests for painless lab flyout#193851
fake-haris merged 11 commits intoelastic:mainfrom
fake-haris:add-functional-tests-for-painless-lab-flyout

Conversation

@fake-haris
Copy link
Copy Markdown
Contributor

@fake-haris fake-haris commented Sep 24, 2024

Summary

Set a simple script in code editor.
Validate that request and response in flyout are the expected.
Resolves:(https://github.com/elastic/appex-qa-team/issues/248)

@fake-haris fake-haris added test_ui_functional release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting labels Sep 24, 2024
@fake-haris fake-haris requested a review from a team as a code owner September 24, 2024 11:43
@wayneseymour wayneseymour self-requested a review September 24, 2024 13:09
Copy link
Copy Markdown
Contributor

@wayneseymour wayneseymour left a comment

Choose a reason for hiding this comment

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

https://eui.elastic.co/#/editors-syntax/code#code-block
has data-test-subj propery, so that looks great.

Comment thread x-pack/test/functional/apps/painless_lab/painless_lab_flyout.ts Outdated
Comment thread x-pack/test/functional/apps/painless_lab/painless_lab_flyout.ts Outdated
Comment thread x-pack/test/functional/apps/painless_lab/painless_lab_flyout.ts Outdated
Copy link
Copy Markdown
Contributor

@wayneseymour wayneseymour left a comment

Choose a reason for hiding this comment

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

Not bad at all, just a nit one small change

Copy link
Copy Markdown
Contributor

@wayneseymour wayneseymour left a comment

Choose a reason for hiding this comment

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

LGTM

Comment thread x-pack/test/functional/apps/painless_lab/painless_lab_flyout.ts Outdated
Copy link
Copy Markdown
Member

@pheyos pheyos left a comment

Choose a reason for hiding this comment

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

LGTM

@fake-haris
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@kibana-ci
Copy link
Copy Markdown

💚 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
painlessLab 18.5KB 18.6KB +89.0B

History

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

Copy link
Copy Markdown
Contributor

@ElenaStoeva ElenaStoeva 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 improving the painless lab tests! Do you mind running the flaky test runner to make sure there's no flakyness?

@kibanamachine
Copy link
Copy Markdown
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#7022

[✅] x-pack/test/functional/apps/painless_lab/config.ts: 25/25 tests passed.

see run history

@fake-haris fake-haris merged commit e41b38b into elastic:main Sep 27, 2024
davismcphee added a commit that referenced this pull request Oct 8, 2024
## Summary

This PR fixes a monaco editor functional test service check that was
added in #193851. The check validates that the editor updates with the
correct text content, but it looks like it may run a bit too quickly
sometimes before the DOM has a chance to update.

Fixes #194511.
Fixes #194482.
Fixes #194425.
Fixes #194305.

Flaky test runs:
-
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7099

### Checklist

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [ ] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [ ] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes test_ui_functional v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants