Skip to content

Commit

Permalink
test: add missing await for connector table disappearance (elastic#17…
Browse files Browse the repository at this point in the history
…5430)

## Summary
There's been a few recent failures in this test:

https://buildkite.com/elastic/kibana-on-merge/builds/40574#018d3a8b-fe46-410e-a2b9-51eff916ddcd

https://buildkite.com/elastic/kibana-on-merge/builds/40576#018d3b7a-1be4-499d-9b42-e10d860ee637

I don't know if this small addition will make any difference in the test
timing out, but it will probably avoid the `Unhandled Promise rejection
detected:` kind of errors, since we'll now wait for the expression.

cc: @saarikabhasi
  • Loading branch information
delanni authored and CoenWarmer committed Feb 15, 2024
1 parent f4bfeb7 commit ff8ee8d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ export function SvlSearchConnectorsPageProvider({ getService }: FtrProviderConte
.then(() => true)
.catch(() => false)
);
browser.refresh();
this.expectConnectorTableToHaveNoItems();
await browser.refresh();
await this.expectConnectorTableToHaveNoItems();
},
async expectConnectorOverviewPageComponentsToExist() {
await testSubjects.existOrFail('serverlessSearchConnectorsTitle');
Expand Down

0 comments on commit ff8ee8d

Please sign in to comment.