UNPKG

kibana-123

Version:

Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic

37 lines (31 loc) 1.16 kB
import { bdd, remote, defaultTimeout } from '../../../support'; import PageObjects from '../../../support/page_objects'; bdd.describe('dismiss x-pack', function () { this.timeout = defaultTimeout; // Putting everything here in 'before' so it doesn't count as a test // since x-pack may or may not be installed. We just want the banner closed. bdd.before(function () { PageObjects.common.debug('check for X-Pack welcome, opt-out, and dismiss it'); // find class toaster and see if there's any list items in it? return PageObjects.settings.navigateTo() .then(() => { return PageObjects.monitoring.getToasterContents(); }) .then((contents) => { // Welcome to X-Pack! // Sharing your cluster statistics with us helps us improve. Your data is never shared with anyone. Not interested? Opt out here. // Dismiss PageObjects.common.debug('Toast banner contents = ' + contents); if (contents.includes('X-Pack')) { return PageObjects.monitoring.clickOptOut() .then(() => { return PageObjects.monitoring.dismissWelcome(); }); } }); }); });