@@ -20,8 +20,8 @@ export const machine = Machine<
2020initial :'Initial' ,
2121states :{
2222Initial :{
23- after :{
24- 2000 :'Startup'
23+ on :{
24+ WEBVIEW_INITIALIZED :'Startup'
2525}
2626} ,
2727Startup :{
@@ -50,7 +50,7 @@ export const machine = Machine<
5050ContinueTutorial :{
5151onEntry :[ 'tutorialContinue' ] ,
5252on :{
53- TUTORIAL_START :'#tutorial-load-next '
53+ TUTORIAL_START :'#tutorial-load-current '
5454}
5555} ,
5656}
@@ -66,6 +66,13 @@ export const machine = Machine<
66660 :'Summary'
6767}
6868} ,
69+ LoadCurrent :{
70+ id :'tutorial-load-current' ,
71+ // TODO: verify current is not complete
72+ after :{
73+ 0 :'Stage'
74+ } ,
75+ } ,
6976LoadNext :{
7077id :'tutorial-load-next' ,
7178onEntry :[ 'tutorialLoadNext' ] ,
@@ -120,14 +127,9 @@ export const machine = Machine<
120127TestPass :{
121128onEntry :[ 'testPass' , 'stepComplete' ] ,
122129after :{
123- 1000 :{
124- target :'StepNext' ,
125- cond :'hasNextStep' ,
126- }
127- } ,
128- on :{
129- NEXT :'StageComplete' ,
130+ 1000 :'StepNext' ,
130131} ,
132+
131133} ,
132134TestFail :{
133135onEntry :[ 'testFail' ] ,
@@ -138,8 +140,13 @@ export const machine = Machine<
138140StepNext :{
139141onEntry :[ 'stepLoadNext' ] ,
140142after :{
141- 0 :'Normal'
142- }
143+ 0 :[ {
144+ target :'Normal' ,
145+ cond :'hasNextStep' ,
146+ } , {
147+ target :'StageComplete'
148+ } ]
149+ } ,
143150} ,
144151StageComplete :{
145152onEntry :'stageComplete' ,