From c98af532af47c5df463c9c6ca29afbb07f6cc05b Mon Sep 17 00:00:00 2001 From: Dario Gieselaar Date: Mon, 14 Sep 2020 12:11:08 +0200 Subject: [PATCH] Use human-readable timestamps --- .../basic/tests/transaction_groups/error_rate.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/x-pack/test/apm_api_integration/basic/tests/transaction_groups/error_rate.ts b/x-pack/test/apm_api_integration/basic/tests/transaction_groups/error_rate.ts index 831e084f5ce2c..cf23883612b7c 100644 --- a/x-pack/test/apm_api_integration/basic/tests/transaction_groups/error_rate.ts +++ b/x-pack/test/apm_api_integration/basic/tests/transaction_groups/error_rate.ts @@ -48,15 +48,15 @@ export default function ApiTest({ getService }: FtrProviderContext) { }); it('has the correct start date', () => { - expectSnapshot(first(errorRateResponse.erroneousTransactionsRate)?.x).toMatchInline( - `1598439600000` - ); + expectSnapshot( + new Date(first(errorRateResponse.erroneousTransactionsRate)?.x ?? NaN).toISOString() + ).toMatchInline(`"2020-08-26T11:00:00.000Z"`); }); it('has the correct end date', () => { - expectSnapshot(last(errorRateResponse.erroneousTransactionsRate)?.x).toMatchInline( - `1598441400000` - ); + expectSnapshot( + new Date(last(errorRateResponse.erroneousTransactionsRate)?.x ?? NaN).toISOString() + ).toMatchInline(`"2020-08-26T11:30:00.000Z"`); }); it('has the correct number of buckets', () => {