Jon 2023-10-02 07:52:42 -05:00 committed by GitHub
parent 16b4f1a0cd
commit 4c07f9c999
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,7 +93,7 @@ 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();
@ -101,7 +101,7 @@ export function CasesTableServiceProvider(
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;
});