@@ -20,8 +20,8 @@ export const machine = Machine<
20
20
initial :'Initial' ,
21
21
states :{
22
22
Initial :{
23
- after :{
24
- 2000 :'Startup'
23
+ on :{
24
+ WEBVIEW_INITIALIZED :'Startup'
25
25
}
26
26
} ,
27
27
Startup :{
@@ -50,7 +50,7 @@ export const machine = Machine<
50
50
ContinueTutorial :{
51
51
onEntry :[ 'tutorialContinue' ] ,
52
52
on :{
53
- TUTORIAL_START :'#tutorial-load-next '
53
+ TUTORIAL_START :'#tutorial-load-current '
54
54
}
55
55
} ,
56
56
}
@@ -66,6 +66,13 @@ export const machine = Machine<
66
66
0 :'Summary'
67
67
}
68
68
} ,
69
+ LoadCurrent :{
70
+ id :'tutorial-load-current' ,
71
+ // TODO: verify current is not complete
72
+ after :{
73
+ 0 :'Stage'
74
+ } ,
75
+ } ,
69
76
LoadNext :{
70
77
id :'tutorial-load-next' ,
71
78
onEntry :[ 'tutorialLoadNext' ] ,
@@ -120,14 +127,9 @@ export const machine = Machine<
120
127
TestPass :{
121
128
onEntry :[ 'testPass' , 'stepComplete' ] ,
122
129
after :{
123
- 1000 :{
124
- target :'StepNext' ,
125
- cond :'hasNextStep' ,
126
- }
127
- } ,
128
- on :{
129
- NEXT :'StageComplete' ,
130
+ 1000 :'StepNext' ,
130
131
} ,
132
+
131
133
} ,
132
134
TestFail :{
133
135
onEntry :[ 'testFail' ] ,
@@ -138,8 +140,13 @@ export const machine = Machine<
138
140
StepNext :{
139
141
onEntry :[ 'stepLoadNext' ] ,
140
142
after :{
141
- 0 :'Normal'
142
- }
143
+ 0 :[ {
144
+ target :'Normal' ,
145
+ cond :'hasNextStep' ,
146
+ } , {
147
+ target :'StageComplete'
148
+ } ]
149
+ } ,
143
150
} ,
144
151
StageComplete :{
145
152
onEntry :'stageComplete' ,