diff --git a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/stack_alerts_page.ts b/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/stack_alerts_page.ts index 5fa3a6cc0d9a3..3bf9bde7ea644 100644 --- a/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/stack_alerts_page.ts +++ b/x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/stack_alerts_page.ts @@ -98,8 +98,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { }); }); - // FLAKY: https://github.com/elastic/kibana/issues/184882 - describe.skip('Loads the page', () => { + describe('Loads the page', () => { beforeEach(async () => { await security.testUser.restoreDefaults(); await pageObjects.common.navigateToUrl( @@ -141,10 +140,11 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { firstSolutionFilter = quickFilters .filter((_: number, f: any) => f.attribs['data-test-subj'].endsWith('rule types')) .first(); - expect(firstSolutionFilter).to.not.be(null); + + expect(typeof firstSolutionFilter?.attr('data-test-subj')).to.be('string'); }); - await testSubjects.click(firstSolutionFilter!.attr('data-test-subj')); + await testSubjects.click(firstSolutionFilter.attr('data-test-subj')); await retry.try(async () => { const appliedFilters = await pageObjects.triggersActionsUI.getAlertsPageAppliedFilters(); @@ -165,9 +165,11 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { f.attribs['data-test-subj'].includes('Security rule types') ) .first(); - expect(filter).to.not.be(null); + + expect(typeof filter?.attr('data-test-subj')).to.be('string'); }); - await testSubjects.click(filter!.attr('data-test-subj')); + + await testSubjects.click(filter.attr('data-test-subj')); await retry.try(async () => { quickFilters = await pageObjects.triggersActionsUI.getAlertsPageQuickFilters(); @@ -196,10 +198,11 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { return testSubj.includes('rule types') && !testSubj.includes('Security'); }) .first(); - expect(filter).to.not.be(null); + + expect(typeof filter?.attr('data-test-subj')).to.be('string'); }); - await testSubjects.click(filter!.attr('data-test-subj')); + await testSubjects.click(filter.attr('data-test-subj')); await retry.try(async () => { quickFilters = await pageObjects.triggersActionsUI.getAlertsPageQuickFilters();