mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Add xpack file
This commit is contained in:
parent
0c2815bc5a
commit
d095dac24d
1 changed files with 36 additions and 0 deletions
36
test/functional/apps/xpack/index.js
Normal file
36
test/functional/apps/xpack/index.js
Normal file
|
@ -0,0 +1,36 @@
|
|||
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();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue