Skip to content

Commit e8b8868

Browse files
committed
netpyne-149 Add validation for tutorial 2
1 parent cba8943 commit e8b8868

1 file changed

Lines changed: 17 additions & 9 deletions

File tree

webapp/redux/reducers/data/tutorial2_steps.js

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ const tutorial2_steps = [
3333
<div>
3434
<p>Change the cell rule label to "PTcell"</p>
3535
</div>
36-
)
36+
),
37+
validation: 'PTcell'
3738
},
3839
{
3940
target: '#importCellParamsCellName',
@@ -44,7 +45,8 @@ const tutorial2_steps = [
4445
<div>
4546
<p>Change the template/cell name to "PTcell"</p>
4647
</div>
47-
)
48+
),
49+
validation: 'PTcell'
4850
},
4951
{
5052
target: '.fa-folder',
@@ -55,7 +57,7 @@ const tutorial2_steps = [
5557
<div>
5658
<p>Click on the folder icon to select the template:</p>
5759
<p> NetPyNE-UI &gt; workspace</p>
58-
<p> &gt; cells &gt; PTcells.hoc</p>
60+
<p> &gt; cells &gt; PTcell.hoc</p>
5961
</div>
6062
)
6163
},
@@ -179,7 +181,8 @@ const tutorial2_steps = [
179181
<div>
180182
<p>Change the cell rule label to "SRI"</p>
181183
</div>
182-
)
184+
),
185+
validation: 'SRI'
183186
},
184187
{
185188
target: '#importCellParamsCellName',
@@ -190,7 +193,8 @@ const tutorial2_steps = [
190193
<div>
191194
<p>Change the template/cell name to "SRI"</p>
192195
</div>
193-
)
196+
),
197+
validation: 'SRI'
194198
},
195199
{
196200
target: '.fa-folder',
@@ -288,7 +292,8 @@ const tutorial2_steps = [
288292
),
289293
content: (
290294
<p>Change the population name to "E"</p>
291-
)
295+
),
296+
validation: 'input[value="E"]'
292297
},
293298
{
294299
target: 'div[id^="netParamspopParams"][id$="cellType"]',
@@ -306,7 +311,8 @@ const tutorial2_steps = [
306311
),
307312
content: (
308313
<p>Enter 2 as number of cells</p>
309-
)
314+
),
315+
validation: '2'
310316
},
311317
{
312318
target: '#newPopulationButton',
@@ -326,7 +332,8 @@ const tutorial2_steps = [
326332
),
327333
content: (
328334
<p>Change the population name to "I"</p>
329-
)
335+
),
336+
validation: 'input[value="I"]'
330337
},
331338
{
332339
target: 'div[id^="netParamspopParams"][id$="cellType"]',
@@ -355,7 +362,8 @@ const tutorial2_steps = [
355362
),
356363
content: (
357364
<p>Enter 2 as number of cells</p>
358-
)
365+
),
366+
validation: '2'
359367
},
360368
// Network creation
361369
{

0 commit comments

Comments
 (0)