Functional tests: make sure clicked dashboard is opened (#42006) (#42060)

* [page_objects/dashboard_page] make sure selected dashboard is opened
This commit is contained in:
Dmitry Lemeshko 2019-07-26 17:55:10 +02:00 committed by GitHub
parent 9785333afb
commit 2a2042e636
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -457,9 +457,12 @@ export function DashboardPageProvider({ getService, getPageObjects }) {
await this.gotoDashboardLandingPage();
await this.searchForDashboardWithName(dashName);
await this.selectDashboard(dashName);
await PageObjects.header.waitUntilLoadingHasFinished();
await retry.try(async () => {
await this.selectDashboard(dashName);
await PageObjects.header.waitUntilLoadingHasFinished();
// check Dashboard landing page is not present
await testSubjects.missingOrFail('newItemButton');
});
}
async getPanelTitles() {