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', () => {