diff --git a/client/components/CandidateReview/CandidateTestPlanRun/InstructionsRenderer.jsx b/client/components/CandidateReview/CandidateTestPlanRun/InstructionsRenderer.jsx index 943831319..ccbca5f4b 100644 --- a/client/components/CandidateReview/CandidateTestPlanRun/InstructionsRenderer.jsx +++ b/client/components/CandidateReview/CandidateTestPlanRun/InstructionsRenderer.jsx @@ -134,17 +134,23 @@ const InstructionsRenderer = ({ ({ settings }) => settings && settings !== 'defaultMode' ); - allInstructions = [ + const defaultInstructions = renderableContent.target.at.raw - .defaultConfigurationInstructionsHTML, - `${supportJson.testPlanStrings.openExampleInstruction} ${renderableContent.target.setupScript.scriptDescription}.`, - `${renderableContent.instructions.instructions} ${ - supportJson.testPlanStrings.commandListPreface - }${ - commandSettingSpecified - ? ` ${supportJson.testPlanStrings.commandListSettingsPreface}` - : '' - }` + .defaultConfigurationInstructionsHTML; + const setupScriptDescription = `${supportJson.testPlanStrings.openExampleInstruction} ${renderableContent.target.setupScript.scriptDescription}`; + const testInstructions = renderableContent.instructions.instructions; + const settingsInstructions = `${ + supportJson.testPlanStrings.commandListPreface + }${ + commandSettingSpecified + ? ` ${supportJson.testPlanStrings.commandListSettingsPreface}` + : '' + }`; + + allInstructions = [ + defaultInstructions, + setupScriptDescription + '.', + testInstructions + ' ' + settingsInstructions ].map(e => unescape(e)); } else { allInstructions = [