@@ -9,6 +9,7 @@ import Markdown from '../../../components/Markdown'
9
9
import ProcessMessages from '../../../components/ProcessMessages'
10
10
import NuxTutorial from '../../../components/NewUserExperience/NuxTutorial'
11
11
import Step from './Step'
12
+ import { DISPLAY_RUN_TEST_BUTTON } from '../../../environment'
12
13
13
14
const styles = {
14
15
page :{
@@ -95,6 +96,7 @@ interface Props {
95
96
processes :T . ProcessEvent [ ]
96
97
testStatus :T . TestStatus | null
97
98
onContinue ( ) :void
99
+ onRunTest ( ) :void
98
100
onLoadSolution ( ) :void
99
101
onOpenLogs ( channel :string ) :void
100
102
}
@@ -107,6 +109,7 @@ const Level = ({
107
109
index,
108
110
status,
109
111
onContinue,
112
+ onRunTest,
110
113
onLoadSolution,
111
114
onOpenLogs,
112
115
processes,
@@ -181,10 +184,16 @@ const Level = ({
181
184
</ div >
182
185
183
186
< 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
+ ) }
188
197
< span >
189
198
{ status === 'COMPLETE' || ! steps . length ?(
190
199
< Button type = "primary" onClick = { onContinue } >