[Discover] Unskip Painless date functional test (#114224)

* [Discover] Unskip functional test

* Remove comment

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Maja Grubic 2021-10-11 11:49:20 +02:00 committed by GitHub
parent cba91fdaab
commit 9d2c536ccb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -367,8 +367,7 @@ export default function ({ getService, getPageObjects }) {
});
});
// FAILING ES PROMOTION: https://github.com/elastic/kibana/issues/113745
describe.skip('creating and using Painless date scripted fields', function describeIndexTests() {
describe('creating and using Painless date scripted fields', function describeIndexTests() {
const scriptedPainlessFieldName2 = 'painDate';
it('should create scripted field', async function () {
@ -384,7 +383,7 @@ export default function ({ getService, getPageObjects }) {
'date',
{ format: 'date', datePattern: 'YYYY-MM-DD HH:00' },
'1',
"doc['utc_time'].value.getMillis() + (1000) * 60 * 60"
"doc['utc_time'].value.toEpochMilli() + (1000) * 60 * 60"
);
await retry.try(async function () {
expect(parseInt(await PageObjects.settings.getScriptedFieldsTabCount())).to.be(