Skip to content

Commit

Permalink
[Synthetics] Fix test run details tab content (#148378)
Browse files Browse the repository at this point in the history
Fixes #147945
  • Loading branch information
shahzad31 authored Jan 4, 2023
1 parent 07a19f1 commit 14c8991
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ export const StepTabs = ({
</EuiCodeBlock>
);
case 'console':
return (
<EuiCodeBlock isCopyable={true} overflowHeight="200px" language="javascript">
{getBrowserConsoles(1)?.join('\n')}
</EuiCodeBlock>
);
case 'stackTrace':
return (
<EuiCodeBlock isCopyable={true} overflowHeight="200px" language="html">
{step?.synthetics?.error?.stack}
Expand All @@ -91,7 +97,7 @@ export const StepTabs = ({
default:
return (
<EuiCodeBlock isCopyable={true} overflowHeight="200px" language="javascript">
{getBrowserConsoles(1)?.join('\n')}
{step?.synthetics?.payload?.source}
</EuiCodeBlock>
);
}
Expand Down

0 comments on commit 14c8991

Please sign in to comment.