diff --git a/x-pack/plugins/cases/public/components/all_cases/use_actions.tsx b/x-pack/plugins/cases/public/components/all_cases/use_actions.tsx index a06235d144a50..88d94f65f900c 100644 --- a/x-pack/plugins/cases/public/components/all_cases/use_actions.tsx +++ b/x-pack/plugins/cases/public/components/all_cases/use_actions.tsx @@ -186,7 +186,12 @@ const ActionColumnComponent: React.FC<{ theCase: Case; disableActions: boolean } panelPaddingSize="none" anchorPosition="downLeft" > - + {deleteAction.isModalVisible ? ( { + return find.existsByCssSelector('[data-test-subj*="case-action-status-panel-"'); + }); - await find.existsByCssSelector('[data-test-subj*="case-action-status-panel-"'); const statusButton = await find.byCssSelector('[data-test-subj*="case-action-status-panel-"'); statusButton.click(); @@ -218,9 +219,10 @@ export function CasesTableServiceProvider( async changeSeverity(severity: CaseSeverity, index: number) { await this.openRowActions(index); - await testSubjects.existOrFail('cases-bulk-action-delete'); + await retry.waitFor('severity panel exists', async () => { + return find.existsByCssSelector('[data-test-subj*="case-action-severity-panel-"'); + }); - await find.existsByCssSelector('[data-test-subj*="case-action-severity-panel-"'); const statusButton = await find.byCssSelector( '[data-test-subj*="case-action-severity-panel-"' ); diff --git a/x-pack/test/functional_with_es_ssl/apps/cases/group2/list_view.ts b/x-pack/test/functional_with_es_ssl/apps/cases/group2/list_view.ts index 485f99f4db94a..b7b5d892681c0 100644 --- a/x-pack/test/functional_with_es_ssl/apps/cases/group2/list_view.ts +++ b/x-pack/test/functional_with_es_ssl/apps/cases/group2/list_view.ts @@ -590,9 +590,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { }); }); - // FLAKY: https://github.com/elastic/kibana/issues/148468 - // FLAKY: https://github.com/elastic/kibana/issues/148469 - describe.skip('Severity', () => { + describe('Severity', () => { before(async () => { await cases.api.createNthRandomCases(1); await header.waitUntilLoadingHasFinished();