Fix interval drop-down for date histogram in discover (#10384)

* Hide the time interval select on blur

* Show scale warning on discover and keep drop-down

* Show scale without need to hover over info icon

* Remove unused variables

* Fix discover page object tests

* Fix getChartInterval in functional test
This commit is contained in:
Lukas Olson 2017-03-28 16:51:12 -07:00 committed by GitHub
parent 753327cfac
commit b11bbc44a4
4 changed files with 24 additions and 48 deletions

View file

@ -82,10 +82,10 @@ bdd.describe('discover app', function describeIndexTests() {
expect(actualTimeString).to.be(expectedTimeString);
});
bdd.it('should show correct initial chart interval of 3 hours', async function () {
bdd.it('should show correct initial chart interval of Auto', async function () {
const actualInterval = await PageObjects.discover.getChartInterval();
const expectedInterval = 'by 3 hours';
const expectedInterval = 'Auto';
expect(actualInterval).to.be(expectedInterval);
});
@ -155,8 +155,8 @@ bdd.describe('discover app', function describeIndexTests() {
await verifyChartData(expectedBarChartData);
});
bdd.it('should show Auto chart interval of 3 hours', async function () {
const expectedChartInterval = 'by 3 hours';
bdd.it('should show Auto chart interval', async function () {
const expectedChartInterval = 'Auto';
const actualInterval = await PageObjects.discover.getChartInterval();
expect(actualInterval).to.be(expectedChartInterval);