mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[test/cases] Fix unhandled promise rejection (#167708)
https://buildkite.com/elastic/kibana-on-merge/builds/36066#018ae2df-584e-4df4-9ae9-1fb89eeda3fd/253-753
This commit is contained in:
parent
16b4f1a0cd
commit
4c07f9c999
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue