mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Migrate status page functional tests to use PageObjects.
This commit is contained in:
parent
0a501b3b70
commit
5ab2a102e8
1 changed files with 7 additions and 6 deletions
|
@ -1,26 +1,27 @@
|
|||
import {
|
||||
bdd,
|
||||
common
|
||||
} from '../../support';
|
||||
|
||||
import PageObjects from '../../support/page_objects';
|
||||
|
||||
var expect = require('expect.js');
|
||||
|
||||
bdd.describe('status page', function () {
|
||||
bdd.before(function () {
|
||||
return common.navigateToApp('status_page', false);
|
||||
return PageObjects.common.navigateToApp('status_page', false);
|
||||
});
|
||||
|
||||
bdd.it('should show the kibana plugin as ready', function () {
|
||||
var self = this;
|
||||
|
||||
return common.tryForTime(6000, function () {
|
||||
return common.findTestSubject('statusBreakdown')
|
||||
return PageObjects.common.tryForTime(6000, function () {
|
||||
return PageObjects.common.findTestSubject('statusBreakdown')
|
||||
.getVisibleText()
|
||||
.then(function (text) {
|
||||
common.saveScreenshot('Status');
|
||||
PageObjects.common.saveScreenshot('Status');
|
||||
expect(text.indexOf('plugin:kibana')).to.be.above(-1);
|
||||
});
|
||||
})
|
||||
.catch(common.createErrorHandler(self));
|
||||
.catch(PageObjects.common.createErrorHandler(self));
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue