use Count not count on area chart test. Remove moveMouseTo for now.
This commit is contained in:
parent
3eeea899f5
commit
78c2d07bee
2 changed files with 12 additions and 27 deletions
|
@ -150,7 +150,7 @@ define(function (require) {
|
||||||
expect(labels).to.eql(yAxisLabels);
|
expect(labels).to.eql(yAxisLabels);
|
||||||
})
|
})
|
||||||
.then(function getAreaChartData() {
|
.then(function getAreaChartData() {
|
||||||
return visualizePage.getAreaChartData('count');
|
return visualizePage.getAreaChartData('Count');
|
||||||
})
|
})
|
||||||
.then(function (paths) {
|
.then(function (paths) {
|
||||||
common.debug('expectedAreaChartData = ' + expectedAreaChartData);
|
common.debug('expectedAreaChartData = ' + expectedAreaChartData);
|
||||||
|
|
|
@ -336,21 +336,13 @@ define(function (require) {
|
||||||
},
|
},
|
||||||
|
|
||||||
filterVisByName: function filterVisByName(vizName) {
|
filterVisByName: function filterVisByName(vizName) {
|
||||||
var self = this;
|
|
||||||
return this.remote
|
return this.remote
|
||||||
.findByCssSelector('input[name="filter"]')
|
.findByCssSelector('input[name="filter"]')
|
||||||
.then(function (filter) {
|
.click()
|
||||||
return self.remote.moveMouseTo(filter);
|
// can't uses dashes in saved visualizations when filtering
|
||||||
})
|
// or extended character sets
|
||||||
.then (function () {
|
// https://github.com/elastic/kibana/issues/6300
|
||||||
return self.remote
|
.type(vizName.replace('-',' '));
|
||||||
.findByCssSelector('input[name="filter"]')
|
|
||||||
.click()
|
|
||||||
.type(vizName.replace('-',' '));
|
|
||||||
})
|
|
||||||
.then (function () {
|
|
||||||
common.sleep(3000);
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
clickVisualizationByLinkText: function clickVisualizationByLinkText(vizName) {
|
clickVisualizationByLinkText: function clickVisualizationByLinkText(vizName) {
|
||||||
|
@ -359,14 +351,7 @@ define(function (require) {
|
||||||
return this.remote
|
return this.remote
|
||||||
.setFindTimeout(defaultTimeout)
|
.setFindTimeout(defaultTimeout)
|
||||||
.findByLinkText(vizName)
|
.findByLinkText(vizName)
|
||||||
.then(function (link) {
|
.click();
|
||||||
return self.remote.moveMouseTo(link);
|
|
||||||
})
|
|
||||||
.then (function () {
|
|
||||||
return self.remote
|
|
||||||
.findByLinkText(vizName)
|
|
||||||
.click();
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// this starts by clicking the Load Saved Viz button, not from the
|
// this starts by clicking the Load Saved Viz button, not from the
|
||||||
|
@ -375,18 +360,18 @@ define(function (require) {
|
||||||
var self = this;
|
var self = this;
|
||||||
return this.clickLoadSavedVisButton()
|
return this.clickLoadSavedVisButton()
|
||||||
.then(function filterVisualization() {
|
.then(function filterVisualization() {
|
||||||
return self.filterVisByName(vizName);
|
return self.openSavedVisualization(vizName);
|
||||||
})
|
|
||||||
.then(function clickDashboardByLinkedText() {
|
|
||||||
return self.clickVisualizationByLinkText(vizName);
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
// this starts on the
|
// this is for starting on the
|
||||||
// bottom half of the "Create a new visualization Step 1" page
|
// bottom half of the "Create a new visualization Step 1" page
|
||||||
openSavedVisualization: function openSavedVisualization(vizName) {
|
openSavedVisualization: function openSavedVisualization(vizName) {
|
||||||
var self = this;
|
var self = this;
|
||||||
return self.filterVisByName(vizName)
|
return self.filterVisByName(vizName)
|
||||||
|
.then(function () {
|
||||||
|
return common.sleep(1000);
|
||||||
|
})
|
||||||
.then(function clickDashboardByLinkedText() {
|
.then(function clickDashboardByLinkedText() {
|
||||||
return self.clickVisualizationByLinkText(vizName);
|
return self.clickVisualizationByLinkText(vizName);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue