Skip to content

Commit

Permalink
don't wait for nav:not(.ng-hide) on status page (#113674) (#113845)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Lee Drengenberg <lee.drengenberg@elastic.co>
  • Loading branch information
kibanamachine and Lee Drengenberg authored Oct 4, 2021
1 parent 2fec598 commit 76c31da
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/functional/page_objects/common_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,14 @@ export class CommonPageObject extends FtrService {
await this.login.login('test_user', 'changeme');
}

await this.find.byCssSelector(
'[data-test-subj="kibanaChrome"] nav:not(.ng-hide)',
6 * this.defaultFindTimeout
);
if (appUrl.includes('/status')) {
await this.testSubjects.find('statusPageRoot');
} else {
await this.find.byCssSelector(
'[data-test-subj="kibanaChrome"] nav:not(.ng-hide)',
6 * this.defaultFindTimeout
);
}
await this.browser.get(appUrl, insertTimestamp);
currentUrl = await this.browser.getCurrentUrl();
this.log.debug(`Finished login process currentUrl = ${currentUrl}`);
Expand Down

0 comments on commit 76c31da

Please sign in to comment.