mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Revert "Merge branch 'backport/7.x/pr-36322' of https://github.com/LeeDr/kibana into 7.x"
This reverts commit215bc28186
, reversing changes made to9aa5242607
.
This commit is contained in:
parent
215bc28186
commit
4b5f0d6627
1 changed files with 4 additions and 10 deletions
|
@ -31,17 +31,19 @@ export default function ({ getService, getPageObjects }) {
|
|||
defaultIndex: 'logstash-*',
|
||||
};
|
||||
|
||||
describe('discover test', function describeIndexTests() {
|
||||
describe('discover app', function describeIndexTests() {
|
||||
const fromTime = '2015-09-19 06:31:44.000';
|
||||
const toTime = '2015-09-23 18:31:44.000';
|
||||
|
||||
before(async function () {
|
||||
// delete .kibana index and update configDoc
|
||||
await kibanaServer.uiSettings.replace(defaultSettings);
|
||||
|
||||
log.debug('load kibana index with default index pattern');
|
||||
await esArchiver.load('discover');
|
||||
|
||||
// and load a set of makelogs data
|
||||
await esArchiver.loadIfNeeded('logstash_functional');
|
||||
await kibanaServer.uiSettings.replace(defaultSettings);
|
||||
log.debug('discover');
|
||||
await PageObjects.common.navigateToApp('discover');
|
||||
await PageObjects.timePicker.setAbsoluteRange(fromTime, toTime);
|
||||
|
@ -54,9 +56,6 @@ export default function ({ getService, getPageObjects }) {
|
|||
const time = await PageObjects.timePicker.getTimeConfig();
|
||||
expect(time.start).to.be('Sep 19, 2015 @ 06:31:44.000');
|
||||
expect(time.end).to.be('Sep 23, 2015 @ 18:31:44.000');
|
||||
const rowData = await PageObjects.discover.getDocTableIndex(1);
|
||||
log.debug('check the newest doc timestamp in UTC (check diff timezone in last test)');
|
||||
expect(rowData.startsWith('Sep 22, 2015 @ 23:50:13.253')).to.be.ok();
|
||||
});
|
||||
|
||||
it('save query should show toast message and display query name', async function () {
|
||||
|
@ -436,7 +435,6 @@ export default function ({ getService, getPageObjects }) {
|
|||
|
||||
describe('time zone switch', () => {
|
||||
it('should show bars in the correct time zone after switching', async function () {
|
||||
|
||||
await kibanaServer.uiSettings.replace({ 'dateFormat:tz': 'America/Phoenix' });
|
||||
await browser.refresh();
|
||||
await PageObjects.timePicker.setAbsoluteRange(fromTime, toTime);
|
||||
|
@ -459,11 +457,7 @@ export default function ({ getService, getPageObjects }) {
|
|||
}
|
||||
}
|
||||
});
|
||||
log.debug('check that the newest doc timestamp is now -7 hours from the UTC time in the first test');
|
||||
const rowData = await PageObjects.discover.getDocTableIndex(1);
|
||||
expect(rowData.startsWith('Sep 22, 2015 @ 16:50:13.253')).to.be.ok();
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue