mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
(cherry picked from commit de74a6ba52
)
Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
This commit is contained in:
parent
6d10e8aaf4
commit
d73b9f69cc
3 changed files with 9 additions and 1 deletions
|
@ -20,7 +20,13 @@ export function CasesSingleViewServiceProvider({ getService, getPageObject }: Ft
|
|||
|
||||
return {
|
||||
async deleteCase() {
|
||||
await common.clickAndValidate('property-actions-ellipses', 'property-actions-trash');
|
||||
const caseActions = await testSubjects.findDescendant(
|
||||
'property-actions-ellipses',
|
||||
await testSubjects.find('case-view-actions')
|
||||
);
|
||||
|
||||
await caseActions.click();
|
||||
await testSubjects.existOrFail('property-actions-trash');
|
||||
await common.clickAndValidate('property-actions-trash', 'confirmModalConfirmButton');
|
||||
await testSubjects.click('confirmModalConfirmButton');
|
||||
await header.waitUntilLoadingHasFinished();
|
||||
|
|
|
@ -60,6 +60,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
|
|||
|
||||
it(`User ${user.username} can delete a case while on a specific case page`, async () => {
|
||||
await cases.singleCase.deleteCase();
|
||||
await cases.casesTable.waitForTableToFinishLoading();
|
||||
await cases.casesTable.validateCasesTableHasNthRows(1);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -167,6 +167,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => {
|
|||
|
||||
it('deletes the case successfully', async () => {
|
||||
await cases.singleCase.deleteCase();
|
||||
await cases.casesTable.waitForTableToFinishLoading();
|
||||
await cases.casesTable.validateCasesTableHasNthRows(0);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue