remove top-nav. it is not rendered in KP (#69488)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
Mikhail Shustov 2020-06-24 14:24:53 +03:00 committed by GitHub
parent 778136f3bf
commit 78ebb6250a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -378,14 +378,12 @@ export function CommonPageProvider({ getService, getPageObjects }: FtrProviderCo
async isChromeVisible() {
const globalNavShown = await globalNav.exists();
const topNavShown = await testSubjects.exists('top-nav');
return globalNavShown && topNavShown;
return globalNavShown;
}
async isChromeHidden() {
const globalNavShown = await globalNav.exists();
const topNavShown = await testSubjects.exists('top-nav');
return !globalNavShown && !topNavShown;
return !globalNavShown;
}
async waitForTopNavToBeVisible() {