From a127521c4c982887be6ad454f8fa68560c2b50eb Mon Sep 17 00:00:00 2001 From: Coen Warmer Date: Mon, 1 May 2023 10:54:22 +0200 Subject: [PATCH] Retry waiting for Add to new case option --- .../apps/observability/pages/alerts/add_to_case.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/x-pack/test/observability_functional/apps/observability/pages/alerts/add_to_case.ts b/x-pack/test/observability_functional/apps/observability/pages/alerts/add_to_case.ts index 40cfb2977850e..e43305267ffb0 100644 --- a/x-pack/test/observability_functional/apps/observability/pages/alerts/add_to_case.ts +++ b/x-pack/test/observability_functional/apps/observability/pages/alerts/add_to_case.ts @@ -12,8 +12,7 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => { const observability = getService('observability'); const retry = getService('retry'); - // Failing: See https://github.com/elastic/kibana/issues/154726 - describe.skip('Observability alerts / Add to case >', function () { + describe('Observability alerts / Add to case >', function () { this.tags('includeFirefox'); before(async () => { @@ -26,7 +25,7 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => { await esArchiver.unload('x-pack/test/functional/es_archives/observability/alerts'); }); - describe('When user has all priviledges for cases', () => { + describe('When user has all privileges for cases', () => { before(async () => { await observability.users.setTestUserRole( observability.users.defineBasicObservabilityRole({ @@ -49,8 +48,10 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => { }); }); - it('opens a flyout when Add to new case is clicked', async () => { - await observability.alerts.addToCase.addToNewCaseButtonClick(); + it('opens a flyout when "Add to new case" is clicked', async () => { + await retry.try(async () => { + await observability.alerts.addToCase.addToNewCaseButtonClick(); + }); await retry.try(async () => { await observability.alerts.addToCase.getCreateCaseFlyoutOrFail();