[Visualize] Unskips failed percentiles test (#160228)

## Summary

Closes https://github.com/elastic/kibana/issues/160164

The ES promotion failed due to this
https://github.com/elastic/elasticsearch/pull/96904

With the new algorithm there is a deviation in the results, to stabilize
it I have increased the accuracy by increasing the compression.

Flaky runner
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2455
This commit is contained in:
Stratoula Kalafateli 2023-06-23 16:29:20 +03:00 committed by GitHub
parent 566d4ddc5a
commit 56bf0f6c58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,8 +17,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const inspector = getService('inspector');
const PageObjects = getPageObjects(['visualize', 'visEditor', 'visChart', 'timePicker']);
// FAILING ES PROMOTION: https://github.com/elastic/kibana/issues/160164
describe.skip('metric chart', function () {
describe('metric chart', function () {
before(async function () {
await PageObjects.visualize.initTests();
log.debug('navigateToApp visualize');
@ -149,6 +148,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await PageObjects.visEditor.selectAggregation('Percentiles', 'metrics');
log.debug('Field = machine.ram');
await PageObjects.visEditor.selectField('machine.ram', 'metrics');
await PageObjects.visEditor.toggleAdvancedParams('1');
await PageObjects.visEditor.inputValueInCodeEditor('{ "tdigest": { "compression": 1000 } }');
await PageObjects.visEditor.clickGo();
await retry.try(async function tryingForTime() {
const metricValue = await PageObjects.visChart.getMetric();