Skip to content

Commit

Permalink
More test fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
wylieconlon committed Jan 21, 2020
1 parent 1efcfc2 commit b96444a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 24 deletions.
34 changes: 17 additions & 17 deletions test/functional/apps/visualize/_area_chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,8 @@ export class ReportInfoButton extends Component<Props, State> {

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;
Expand Down Expand Up @@ -118,7 +113,8 @@ export class ReportInfoButton extends Component<Props, State> {
},
{
title: 'Browser Locales',
description: get(info, 'payload.browserLocales')?.join(', ') || NA,
description:
get<JobInfo | null, string[]>(info, 'payload.browserLocales')?.join(', ') || NA,
},
],
payload: [
Expand Down

0 comments on commit b96444a

Please sign in to comment.