[8.12] [Security Solution] unskip endpoint alerts cypress tests (#174493) (#174641)

# Backport

This will backport the following commits from `main` to `8.12`:
- [[Security Solution] unskip endpoint alerts cypress tests
(#174493)](https://github.com/elastic/kibana/pull/174493)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Joey F.
Poon","email":"joey.poon@elastic.co"},"sourceCommit":{"committedDate":"2024-01-10T17:21:10Z","message":"[Security
Solution] unskip endpoint alerts cypress tests (#174493)\n\n##
Summary\r\n\r\nUnskip endpoint alerts cypress test. Various enhancements
to our tests\r\nwere previously made, this is just retroactively
unskipping after\r\nverifying with flaky test runner.\r\n\r\nFlaky test
runs:\r\n-\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4798\r\n(50x
 )\r\n\r\n\r\n### For maintainers\r\n\r\n- [x] This was checked for
breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"f1415345bac26e594ab76fa223f0b439e1920be8","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Defend
Workflows","v8.12.0","v8.13.0"],"title":"[Security Solution] unskip
endpoint alerts cypress
tests","number":174493,"url":"https://github.com/elastic/kibana/pull/174493","mergeCommit":{"message":"[Security
Solution] unskip endpoint alerts cypress tests (#174493)\n\n##
Summary\r\n\r\nUnskip endpoint alerts cypress test. Various enhancements
to our tests\r\nwere previously made, this is just retroactively
unskipping after\r\nverifying with flaky test runner.\r\n\r\nFlaky test
runs:\r\n-\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4798\r\n(50x
 )\r\n\r\n\r\n### For maintainers\r\n\r\n- [x] This was checked for
breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"f1415345bac26e594ab76fa223f0b439e1920be8"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","branchLabelMappingKey":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/174493","number":174493,"mergeCommit":{"message":"[Security
Solution] unskip endpoint alerts cypress tests (#174493)\n\n##
Summary\r\n\r\nUnskip endpoint alerts cypress test. Various enhancements
to our tests\r\nwere previously made, this is just retroactively
unskipping after\r\nverifying with flaky test runner.\r\n\r\nFlaky test
runs:\r\n-\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4798\r\n(50x
 )\r\n\r\n\r\n### For maintainers\r\n\r\n- [x] This was checked for
breaking API changes and was
[labeled\r\nappropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)","sha":"f1415345bac26e594ab76fa223f0b439e1920be8"}}]}]
BACKPORT-->

Co-authored-by: Joey F. Poon <joey.poon@elastic.co>
This commit is contained in:
Kibana Machine 2024-01-10 13:42:54 -05:00 committed by GitHub
parent 3848d3c8ef
commit e9092c0a17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,8 +19,7 @@ import { login, ROLE } from '../tasks/login';
import { EXECUTE_ROUTE } from '../../../../common/endpoint/constants';
import { waitForActionToComplete } from '../tasks/response_actions';
// FLAKY: https://github.com/elastic/kibana/issues/169958
describe.skip('Endpoint generated alerts', { tags: ['@ess', '@serverless'] }, () => {
describe('Endpoint generated alerts', { tags: ['@ess', '@serverless'] }, () => {
let indexedPolicy: IndexedFleetEndpointPolicyResponse;
let policy: PolicyData;
let createdHost: CreateAndEnrollEndpointHostResponse;