[test/functional/context] include missing await (#100422)

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Spencer 2021-05-25 01:01:47 -06:00 committed by GitHub
parent aa2f5b535d
commit 7bd46ec204
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -130,7 +130,7 @@ export default function ({ getService, getPageObjects }) {
const alert = await browser.getAlert();
await alert?.accept();
expect(await browser.getCurrentUrl()).to.contain('#/doc');
retry.waitFor('doc view being rendered', async () => {
await retry.waitFor('doc view being rendered', async () => {
return await PageObjects.discover.isShowingDocViewer();
});
});