Skip to content

Commit

Permalink
[Security Solution] Fixes flaky Cypres test `rules_table_selection·cy…
Browse files Browse the repository at this point in the history
…·ts` by disabling auto refresh (#171414)

Fixes: #164279

## Summary

- Fixes flake reported in `x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/rules_table/rules_table_selection·cy·ts`.
- `selectNumberOfRules` helper is known to fail when the focus on a checkbox is lost due to reordering of the rules table due to an autorefresh taking place.
- This PRs disables autorefresh to prevent that.

## Flaky test runner

- https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4015

## 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)
  • Loading branch information
jpdjere authored Nov 17, 2023
1 parent 1287676 commit d727eae
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
SELECT_ALL_RULES_ON_PAGE_CHECKBOX,
} from '../../../../screens/alerts_detection_rules';
import {
disableAutoRefresh,
selectRulesByName,
unselectRulesByName,
waitForPrebuiltDetectionRulesToBeLoaded,
Expand Down Expand Up @@ -43,6 +44,7 @@ describe(
createAndInstallMockedPrebuiltRules([RULE_1, RULE_2]);
visit(RULES_MANAGEMENT_URL);
waitForPrebuiltDetectionRulesToBeLoaded();
disableAutoRefresh();
});

it('should correctly update the selection label when rules are individually selected and unselected', () => {
Expand Down

0 comments on commit d727eae

Please sign in to comment.