mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
timepicker_migration for date_nanos_mixed (#135483)
* timepicker_migration
* date_picker_migration
* Revert "date_picker_migration"
This reverts commit 2e0c90b7f4
.
This commit is contained in:
parent
8e392a6eed
commit
f43fef1bd3
1 changed files with 7 additions and 3 deletions
|
@ -15,8 +15,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
const PageObjects = getPageObjects(['common', 'timePicker', 'discover']);
|
||||
const kibanaServer = getService('kibanaServer');
|
||||
const security = getService('security');
|
||||
const fromTime = 'Jan 1, 2019 @ 00:00:00.000';
|
||||
const toTime = 'Jan 1, 2019 @ 23:59:59.999';
|
||||
const from = 'Jan 1, 2019 @ 00:00:00.000';
|
||||
const to = 'Jan 1, 2019 @ 23:59:59.999';
|
||||
|
||||
describe('date_nanos_mixed', function () {
|
||||
before(async function () {
|
||||
|
@ -27,8 +27,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
);
|
||||
await kibanaServer.uiSettings.replace({ defaultIndex: 'timestamp-*' });
|
||||
await security.testUser.setRoles(['kibana_admin', 'kibana_date_nanos_mixed']);
|
||||
await PageObjects.common.setTime({ from, to });
|
||||
await PageObjects.common.navigateToApp('discover');
|
||||
await PageObjects.timePicker.setAbsoluteRange(fromTime, toTime);
|
||||
});
|
||||
|
||||
after(async () => {
|
||||
|
@ -48,5 +48,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
const rowData4 = await PageObjects.discover.getDocTableIndex(isLegacy ? 7 : 4);
|
||||
expect(rowData4).to.contain('Jan 1, 2019 @ 12:10:30.123000000');
|
||||
});
|
||||
|
||||
after(async () => {
|
||||
await PageObjects.common.unsetTime();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue