mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
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);
|
||||
})
|
||||
.then(function getAreaChartData() {
|
||||
return visualizePage.getAreaChartData('count');
|
||||
return visualizePage.getAreaChartData('Count');
|
||||
})
|
||||
.then(function (paths) {
|
||||
common.debug('expectedAreaChartData = ' + expectedAreaChartData);
|
||||
|
|
|
@ -336,21 +336,13 @@ define(function (require) {
|
|||
},
|
||||
|
||||
filterVisByName: function filterVisByName(vizName) {
|
||||
var self = this;
|
||||
return this.remote
|
||||
.findByCssSelector('input[name="filter"]')
|
||||
.then(function (filter) {
|
||||
return self.remote.moveMouseTo(filter);
|
||||
})
|
||||
.then (function () {
|
||||
return self.remote
|
||||
.findByCssSelector('input[name="filter"]')
|
||||
.click()
|
||||
.type(vizName.replace('-',' '));
|
||||
})
|
||||
.then (function () {
|
||||
common.sleep(3000);
|
||||
});
|
||||
.click()
|
||||
// can't uses dashes in saved visualizations when filtering
|
||||
// or extended character sets
|
||||
// https://github.com/elastic/kibana/issues/6300
|
||||
.type(vizName.replace('-',' '));
|
||||
},
|
||||
|
||||
clickVisualizationByLinkText: function clickVisualizationByLinkText(vizName) {
|
||||
|
@ -359,14 +351,7 @@ define(function (require) {
|
|||
return this.remote
|
||||
.setFindTimeout(defaultTimeout)
|
||||
.findByLinkText(vizName)
|
||||
.then(function (link) {
|
||||
return self.remote.moveMouseTo(link);
|
||||
})
|
||||
.then (function () {
|
||||
return self.remote
|
||||
.findByLinkText(vizName)
|
||||
.click();
|
||||
});
|
||||
.click();
|
||||
},
|
||||
|
||||
// this starts by clicking the Load Saved Viz button, not from the
|
||||
|
@ -375,18 +360,18 @@ define(function (require) {
|
|||
var self = this;
|
||||
return this.clickLoadSavedVisButton()
|
||||
.then(function filterVisualization() {
|
||||
return self.filterVisByName(vizName);
|
||||
})
|
||||
.then(function clickDashboardByLinkedText() {
|
||||
return self.clickVisualizationByLinkText(vizName);
|
||||
return self.openSavedVisualization(vizName);
|
||||
});
|
||||
},
|
||||
|
||||
// this starts on the
|
||||
// this is for starting on the
|
||||
// bottom half of the "Create a new visualization Step 1" page
|
||||
openSavedVisualization: function openSavedVisualization(vizName) {
|
||||
var self = this;
|
||||
return self.filterVisByName(vizName)
|
||||
.then(function () {
|
||||
return common.sleep(1000);
|
||||
})
|
||||
.then(function clickDashboardByLinkedText() {
|
||||
return self.clickVisualizationByLinkText(vizName);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue