[6.8] [Discover] Unskip Discover histogram time range test (#71056) (#73771)

- Adaption of expected the time range when the histogram was brushed
This commit is contained in:
Matthias Wilhelm 2020-07-30 14:40:30 +02:00 committed by GitHub
parent 14bfd45212
commit 114c96c694
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -138,14 +138,13 @@ export default function ({ getService, getPageObjects }) {
expect(actualTimeString).to.be('September 20th 2015, 00:00:00.000 to September 20th 2015, 03:00:00.000');
});
// FAILING: https://github.com/elastic/kibana/issues/38361
it.skip('should modify the time range when the histogram is brushed', async function () {
it('should modify the time range when the histogram is brushed', async function () {
await PageObjects.header.setAbsoluteRange(fromTime, toTime);
await PageObjects.visualize.waitForVisualization();
await PageObjects.discover.brushHistogram(0, 1);
await PageObjects.visualize.waitForVisualization();
const actualTimeString = await PageObjects.header.getPrettyDuration();
expect(actualTimeString).to.be('September 19th 2015, 23:52:17.080 to September 20th 2015, 02:59:51.112');
expect(actualTimeString).to.be('September 19th 2015, 23:53:43.254 to September 20th 2015, 02:52:36.173');
});
it('should show correct initial chart interval of Auto', async function () {