mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
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:
parent
753327cfac
commit
b11bbc44a4
4 changed files with 24 additions and 48 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue