[Uptime] Un-skip alert flaky test (#142717) (#142743)

(cherry picked from commit 1ff66582c3)

Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
This commit is contained in:
Kibana Machine 2022-10-05 07:49:10 -06:00 committed by GitHub
parent 4ca557947c
commit c8344b0d5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -142,8 +142,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
});
});
// FLAKY: https://github.com/elastic/kibana/issues/g
describe.skip('tls alert', function () {
describe('tls alert', function () {
const DEFAULT_DATE_START = 'Sep 10, 2019 @ 12:40:08.078';
const DEFAULT_DATE_END = 'Sep 11, 2019 @ 19:40:08.078';
let alerts: any;
@ -185,7 +184,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
it('has created a valid alert with expected parameters', async () => {
let alert: any;
await retry.tryForTime(15000, async () => {
await retry.tryForTime(60 * 1000, async () => {
const apiResponse = await supertest.get(`/api/alerts/_find?search=${alertId}`);
const alertsFromThisTest = apiResponse.body.data.filter(
({ name }: { name: string }) => name === alertId