Skip to content

Commit

Permalink
remove top-nav. it is not rendered in KP (#69488)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
mshustov and elasticmachine authored Jun 24, 2020
1 parent 778136f commit 78ebb62
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/functional/page_objects/common_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 78ebb62

Please sign in to comment.