test: add missing await for connector table disappearance (#175430)

## 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
This commit is contained in:
Alex Szabo 2024-01-24 18:13:50 +01:00 committed by GitHub
parent 891cbfac07
commit 8b7ceea6c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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');