From 14c89910f0505b79168dd5e00b7aec61a4b12ca0 Mon Sep 17 00:00:00 2001 From: Shahzad Date: Wed, 4 Jan 2023 19:27:41 +0100 Subject: [PATCH] [Synthetics] Fix test run details tab content (#148378) Fixes https://github.com/elastic/kibana/issues/147945 --- .../synthetics/components/test_run_details/step_tabs.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/synthetics/public/apps/synthetics/components/test_run_details/step_tabs.tsx b/x-pack/plugins/synthetics/public/apps/synthetics/components/test_run_details/step_tabs.tsx index b7f884a7eee96..cfc9c877added 100644 --- a/x-pack/plugins/synthetics/public/apps/synthetics/components/test_run_details/step_tabs.tsx +++ b/x-pack/plugins/synthetics/public/apps/synthetics/components/test_run_details/step_tabs.tsx @@ -82,6 +82,12 @@ export const StepTabs = ({ ); case 'console': + return ( + + {getBrowserConsoles(1)?.join('\n')} + + ); + case 'stackTrace': return ( {step?.synthetics?.error?.stack} @@ -91,7 +97,7 @@ export const StepTabs = ({ default: return ( - {getBrowserConsoles(1)?.join('\n')} + {step?.synthetics?.payload?.source} ); }