fix find tests (#163702)

## Summary

Fix flaky find rule e2e tests.

Tested using this tool:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2858
This commit is contained in:
Julia 2023-08-11 18:28:22 +02:00 committed by GitHub
parent 00ffe1d791
commit 04d8a2646d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,8 +19,7 @@ const findTestUtils = (
supertest: SuperTest<Test>,
supertestWithoutAuth: any
) => {
// FLAKY: https://github.com/elastic/kibana/issues/148660
describe.skip(describeType, () => {
describe(describeType, () => {
afterEach(() => objectRemover.removeAll());
for (const scenario of UserAtSpaceScenarios) {
@ -60,6 +59,8 @@ const findTestUtils = (
})
)
.expect(200);
objectRemover.add(space.id, createdAlert.id, 'rule', 'alerting');
const response = await supertestWithoutAuth
.get(
`${getUrlPrefix(space.id)}/${
@ -105,6 +106,7 @@ const findTestUtils = (
id: createdAction.id,
connector_type_id: 'test.noop',
params: {},
uuid: match.actions[0].uuid,
frequency: {
summary: false,
notify_when: 'onThrottleInterval',
@ -121,6 +123,7 @@ const findTestUtils = (
notify_when: null,
updated_by: 'elastic',
api_key_owner: 'elastic',
api_key_created_by_user: false,
mute_all: false,
muted_alert_ids: [],
revision: 0,
@ -328,6 +331,7 @@ const findTestUtils = (
params: {},
created_by: 'elastic',
throttle: '1m',
api_key_created_by_user: null,
updated_by: 'elastic',
api_key_owner: null,
mute_all: false,