Skip to content

Commit

Permalink
[test/cases] Fix unhandled promise rejection (elastic#167708)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbudz authored Oct 2, 2023
1 parent 16b4f1a commit 4c07f9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/test/functional/services/cases/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ export function CasesTableServiceProvider(

async waitForCasesToBeListed() {
await retry.waitFor('cases to appear on the all cases table', async () => {
this.refreshTable();
await this.refreshTable();
return await testSubjects.exists('case-details-link');
});
await header.waitUntilLoadingHasFinished();
},

async waitForCasesToBeDeleted() {
await retry.waitFor('the cases table to be empty', async () => {
this.refreshTable();
await this.refreshTable();
const rows = await find.allByCssSelector('[data-test-subj*="cases-table-row-"', 100);
return rows.length === 0;
});
Expand Down

0 comments on commit 4c07f9c

Please sign in to comment.