From b96444a247b72183a61a6609411a054f508c80d7 Mon Sep 17 00:00:00 2001 From: Wylie Conlon Date: Tue, 21 Jan 2020 16:13:00 -0500 Subject: [PATCH] More test fixing --- test/functional/apps/visualize/_area_chart.js | 34 +++++++++---------- .../public/components/report_info_button.tsx | 10 ++---- 2 files changed, 20 insertions(+), 24 deletions(-) diff --git a/test/functional/apps/visualize/_area_chart.js b/test/functional/apps/visualize/_area_chart.js index e52cfdf478c33c..4519e0f3ae292f 100644 --- a/test/functional/apps/visualize/_area_chart.js +++ b/test/functional/apps/visualize/_area_chart.js @@ -234,26 +234,26 @@ export default function({ getService, getPageObjects }) { it('does not scale top hit agg', async () => { const expectedTableData = [ - ['2015-09-20 00:00', '6', '9.035KB'], - ['2015-09-20 01:00', '9', '5.854KB'], - ['2015-09-20 02:00', '22', '4.588KB'], - ['2015-09-20 03:00', '31', '8.349KB'], - ['2015-09-20 04:00', '52', '2.637KB'], - ['2015-09-20 05:00', '119', '1.712KB'], - ['2015-09-20 06:00', '181', '9.157KB'], - ['2015-09-20 07:00', '218', '8.192KB'], - ['2015-09-20 08:00', '341', '12.384KB'], - ['2015-09-20 09:00', '440', '4.482KB'], - ['2015-09-20 10:00', '480', '9.449KB'], + ['2015-09-20 00:00', '6', '9.0KB'], + ['2015-09-20 01:00', '9', '5.9'], + ['2015-09-20 02:00', '22', '4.6'], + ['2015-09-20 03:00', '31', '8.3'], + ['2015-09-20 04:00', '52', '2.6KB'], + ['2015-09-20 05:00', '119', '1.7KB'], + ['2015-09-20 06:00', '181', '9.2KB'], + ['2015-09-20 07:00', '218', '8.2KB'], + ['2015-09-20 08:00', '341', '12.4KB'], + ['2015-09-20 09:00', '440', '4.5KB'], + ['2015-09-20 10:00', '480', '9.4KB'], ['2015-09-20 11:00', '517', '213B'], ['2015-09-20 12:00', '522', '638B'], - ['2015-09-20 13:00', '446', '7.421KB'], - ['2015-09-20 14:00', '403', '4.854KB'], - ['2015-09-20 15:00', '321', '4.132KB'], + ['2015-09-20 13:00', '446', '7.4KB'], + ['2015-09-20 14:00', '403', '4.9KB'], + ['2015-09-20 15:00', '321', '4.1KB'], ['2015-09-20 16:00', '258', '601B'], - ['2015-09-20 17:00', '172', '4.239KB'], - ['2015-09-20 18:00', '95', '6.272KB'], - ['2015-09-20 19:00', '55', '2.053KB'], + ['2015-09-20 17:00', '172', '4.2KB'], + ['2015-09-20 18:00', '95', '6.3KB'], + ['2015-09-20 19:00', '55', '2.1KB'], ]; await PageObjects.visEditor.clickBucket('Y-axis', 'metrics'); diff --git a/x-pack/legacy/plugins/reporting/public/components/report_info_button.tsx b/x-pack/legacy/plugins/reporting/public/components/report_info_button.tsx index 966c5a5190c6fb..d0aca7d997c49b 100644 --- a/x-pack/legacy/plugins/reporting/public/components/report_info_button.tsx +++ b/x-pack/legacy/plugins/reporting/public/components/report_info_button.tsx @@ -73,13 +73,8 @@ export class ReportInfoButton extends Component { const jobType = info.jobtype || NA; - interface JobInfo { - title: string; - description: string; - } - interface JobInfoMap { - [thing: string]: JobInfo[]; + [thing: string]: Array<{ title: string; description: string }>; } const attempts = info.attempts ? info.attempts.toString() : NA; @@ -118,7 +113,8 @@ export class ReportInfoButton extends Component { }, { title: 'Browser Locales', - description: get(info, 'payload.browserLocales')?.join(', ') || NA, + description: + get(info, 'payload.browserLocales')?.join(', ') || NA, }, ], payload: [