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

[MX] Fix flaky tests for severity component #191202

Conversation

guskovaue
Copy link
Contributor

@guskovaue guskovaue commented Aug 23, 2024

Issue: #188951

Fix flaky test: x-pack/plugins/cases/public/components/case_form_fields/severity.test.tsx

It seems that this wrapper createAppMockRenderer is very slow. But we do not need it for this small and simple component. So I just deleted it from the test and use common render instead.

@guskovaue guskovaue added release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v8.16.0 labels Aug 23, 2024
@guskovaue guskovaue self-assigned this Aug 23, 2024
@guskovaue guskovaue marked this pull request as ready for review August 23, 2024 14:53
@guskovaue guskovaue requested a review from a team as a code owner August 23, 2024 14:53
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

cc @guskovaue

Copy link
Contributor

@jcger jcger left a comment

Choose a reason for hiding this comment

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

LGTM By any chance did you run the test multiple times to try to make sure that it's fixed now?

@guskovaue
Copy link
Contributor Author

@jcger Yes, I used test.each(Array(100).fill(null)(test)) for this purpose. Unfortunately the framework we used for flakiness detection works only for functional tests.

@guskovaue guskovaue merged commit f8e88df into elastic:main Aug 26, 2024
21 checks passed
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Aug 26, 2024
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:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v8.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failing test: Jest Tests.x-pack/plugins/cases/public/components/case_form_fields - Severity form field renders
5 participants