Skip to content

Conversation

@maximpn
Copy link
Contributor

@maximpn maximpn commented Sep 10, 2025

Backport

This will backport the following commits from main to 9.0:

Questions ?

Please refer to the Backport tool documentation

**Resolves: elastic#199648
**Resolves: elastic#199700

## Summary

This PR moves StepDefineRule Jest unit tests to Jest integration tests category. This helps to unskip related integration tests since those take more time to execute and Jest integration tests have higher timeouts.

## Details

StepDefineRule component is large enough with multiple dependencies to be treated as an isolated piece of functionality for integration testing. Running these tests as Jest unit tests wasn't the correct approach as such tests take more time to execute and may fail due to small unit tests execution time threshold. However, Jest integration tests group provides enough large timeouts for related integration tests to finish.

Based on the experience with Jest integration tests for [Prebuilt Rules Customization](https://github.com/elastic/kibana/tree/main/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_management_ui/pages/rule_management/__integration_tests__/rules_upgrad) in e this approach is the right one for testing large UI components.

(cherry picked from commit 27d516a)

# Conflicts:
#	x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation_ui/components/step_define_rule/__integration_tests__/step_define_rule.test.tsx
@maximpn maximpn added the backport This PR is a backport of another PR label Sep 10, 2025
@maximpn maximpn enabled auto-merge (squash) September 10, 2025 08:44
@banderror
Copy link
Contributor

@elasticmachine merge upstream

@maximpn maximpn merged commit c1e965a into elastic:9.0 Sep 11, 2025
9 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants