[Discover] Unskip doc navigation functional test (#96948)

This commit is contained in:
Matthias Wilhelm 2021-04-15 19:58:19 +02:00 committed by GitHub
parent d47ee56e93
commit f4e7941e7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,8 +105,7 @@ export default function ({ getService, getPageObjects }) {
await PageObjects.discover.waitForDocTableLoadingComplete();
});
// flaky https://github.com/elastic/kibana/issues/93670
it.skip('navigates to doc view from embeddable', async () => {
it('navigates to doc view from embeddable', async () => {
await PageObjects.common.navigateToApp('discover');
await PageObjects.discover.saveSearch('my search');
await PageObjects.header.waitUntilLoadingHasFinished();
@ -126,7 +125,9 @@ export default function ({ getService, getPageObjects }) {
const alert = await browser.getAlert();
await alert?.accept();
expect(await browser.getCurrentUrl()).to.contain('#/doc');
expect(await PageObjects.discover.isShowingDocViewer()).to.be(true);
retry.waitFor('doc view being rendered', async () => {
return await PageObjects.discover.isShowingDocViewer();
});
});
});
}