@@ -9,6 +9,7 @@ import Markdown from '../../../components/Markdown'
99import ProcessMessages from '../../../components/ProcessMessages'
1010import NuxTutorial from '../../../components/NewUserExperience/NuxTutorial'
1111import Step from './Step'
12+ import { DISPLAY_RUN_TEST_BUTTON } from '../../../environment'
1213
1314const styles = {
1415page :{
@@ -95,6 +96,7 @@ interface Props {
9596processes :T . ProcessEvent [ ]
9697testStatus :T . TestStatus | null
9798onContinue ( ) :void
99+ onRunTest ( ) :void
98100onLoadSolution ( ) :void
99101onOpenLogs ( channel :string ) :void
100102}
@@ -107,6 +109,7 @@ const Level = ({
107109 index,
108110 status,
109111 onContinue,
112+ onRunTest,
110113 onLoadSolution,
111114 onOpenLogs,
112115 processes,
@@ -181,10 +184,16 @@ const Level = ({
181184</ div >
182185
183186< div css = { styles . footer } >
184- < span >
185- { typeof index === 'number' ?`${ index + 1 } . ` :'' }
186- { title }
187- </ span >
187+ { DISPLAY_RUN_TEST_BUTTON && status !== 'COMPLETE' ?(
188+ < Button type = "primary" onClick = { onRunTest } >
189+ Run
190+ </ Button >
191+ ) :(
192+ < span >
193+ { typeof index === 'number' ?`${ index + 1 } . ` :'' }
194+ { title }
195+ </ span >
196+ ) }
188197< span >
189198{ status === 'COMPLETE' || ! steps . length ?(
190199< Button type = "primary" onClick = { onContinue } >