From fd8d372e3bc22e4028d8450e29bfacd322376a79 Mon Sep 17 00:00:00 2001 From: Julian Gernun <17549662+jcger@users.noreply.github.com> Date: Wed, 11 Sep 2024 17:04:13 +0200 Subject: [PATCH] [Response Ops][Cases] Flaky Cases List Row Actions Update - Security (#192487) Closes https://github.com/elastic/kibana/issues/191641 Toasts are stacking up until covering the row action to be clicked next. This PR dismiss every toast created after each test. In the status update test this might happen as well and therefore I did add the toast dismissal to the whole row actions test suite. --- .../functional/test_suites/security/ftr/cases/list_view.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/x-pack/test_serverless/functional/test_suites/security/ftr/cases/list_view.ts b/x-pack/test_serverless/functional/test_suites/security/ftr/cases/list_view.ts index 4cb9c58a70b94d9..673dca32d9fd183 100644 --- a/x-pack/test_serverless/functional/test_suites/security/ftr/cases/list_view.ts +++ b/x-pack/test_serverless/functional/test_suites/security/ftr/cases/list_view.ts @@ -20,6 +20,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { const svlCases = getService('svlCases'); const svlSecNavigation = getService('svlSecNavigation'); const svlCommonPage = getPageObject('svlCommonPage'); + const toasts = getService('toasts'); describe('Cases List', function () { before(async () => { @@ -217,6 +218,10 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { }); describe('row actions', () => { + afterEach(async () => { + await toasts.dismissAll(); + }); + describe('Status', () => { createNCasesBeforeDeleteAllAfter(1, getPageObject, getService);