diff --git a/x-pack/test_serverless/functional/test_suites/observability/cases/create_case_form.ts b/x-pack/test_serverless/functional/test_suites/observability/cases/create_case_form.ts index b6c76f3ab1f49..e89e2b799dc30 100644 --- a/x-pack/test_serverless/functional/test_suites/observability/cases/create_case_form.ts +++ b/x-pack/test_serverless/functional/test_suites/observability/cases/create_case_form.ts @@ -21,6 +21,7 @@ export default ({ getService, getPageObject }: FtrProviderContext) => { const testSubjects = getService('testSubjects'); const svlCommonPage = getPageObject('svlCommonPage'); const config = getService('config'); + const header = getPageObject('header'); before(async () => { await svlCommonPage.login(); @@ -28,6 +29,7 @@ export default ({ getService, getPageObject }: FtrProviderContext) => { beforeEach(async () => { await navigateToCasesApp(getPageObject, getService, owner); + await header.waitUntilLoadingHasFinished(); }); after(async () => { diff --git a/x-pack/test_serverless/functional/test_suites/observability/cases/view_case.ts b/x-pack/test_serverless/functional/test_suites/observability/cases/view_case.ts index be6295903615a..24234d4a40e52 100644 --- a/x-pack/test_serverless/functional/test_suites/observability/cases/view_case.ts +++ b/x-pack/test_serverless/functional/test_suites/observability/cases/view_case.ts @@ -35,6 +35,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { }); after(async () => { + await cases.api.deleteAllCases(); await svlCommonPage.forceLogout(); }); diff --git a/x-pack/test_serverless/functional/test_suites/security/ftr/cases/create_case_form.ts b/x-pack/test_serverless/functional/test_suites/security/ftr/cases/create_case_form.ts index 14288c9c60668..01acd082021a2 100644 --- a/x-pack/test_serverless/functional/test_suites/security/ftr/cases/create_case_form.ts +++ b/x-pack/test_serverless/functional/test_suites/security/ftr/cases/create_case_form.ts @@ -15,22 +15,23 @@ import { navigateToCasesApp } from '../../../../../shared/lib/cases'; const owner = SECURITY_SOLUTION_OWNER; export default ({ getService, getPageObject }: FtrProviderContext) => { - // FLAKY: https://github.com/elastic/kibana/issues/166842 - describe.skip('Create Case', function () { + describe('Create Case', function () { const find = getService('find'); const cases = getService('cases'); const testSubjects = getService('testSubjects'); const config = getService('config'); const svlCommonPage = getPageObject('svlCommonPage'); - - beforeEach(async () => { - await navigateToCasesApp(getPageObject, getService, owner); - }); + const header = getPageObject('header'); before(async () => { await svlCommonPage.login(); }); + beforeEach(async () => { + await navigateToCasesApp(getPageObject, getService, owner); + await header.waitUntilLoadingHasFinished(); + }); + after(async () => { await cases.api.deleteAllCases(); await svlCommonPage.forceLogout(); diff --git a/x-pack/test_serverless/functional/test_suites/security/ftr/cases/view_case.ts b/x-pack/test_serverless/functional/test_suites/security/ftr/cases/view_case.ts index ca3e9af7df83f..4429c74040eaf 100644 --- a/x-pack/test_serverless/functional/test_suites/security/ftr/cases/view_case.ts +++ b/x-pack/test_serverless/functional/test_suites/security/ftr/cases/view_case.ts @@ -36,6 +36,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { }); after(async () => { + await cases.api.deleteAllCases(); await svlCommonPage.forceLogout(); });