File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ export const page = new Page({
1818 afterHide : async ( ) : Promise < void > => {
1919 TestLogic . restart ( {
2020 noAnim : true ,
21+ skipInit : true ,
2122 } ) ;
2223 void Funbox . clear ( ) ;
2324 void ModesNotice . update ( ) ;
Original file line number Diff line number Diff line change @@ -175,6 +175,7 @@ type RestartOptions = {
175175 practiseMissed ?: boolean ;
176176 noAnim ?: boolean ;
177177 isQuickRestart ?: boolean ;
178+ skipInit ?: boolean ;
178179} ;
179180
180181export function restart ( options = { } as RestartOptions ) : void {
@@ -184,6 +185,7 @@ export function restart(options = {} as RestartOptions): void {
184185 noAnim : false ,
185186 nosave : false ,
186187 isQuickRestart : false ,
188+ skipInit : false ,
187189 } ;
188190
189191 options = { ...defaultOptions , ...options } ;
@@ -353,6 +355,12 @@ export function restart(options = {} as RestartOptions): void {
353355 TestState . setPaceRepeat ( repeatWithPace ) ;
354356 TestInitFailed . hide ( ) ;
355357 TestState . setTestInitSuccess ( true ) ;
358+
359+ if ( options . skipInit ) {
360+ TestState . setTestRestarting ( false ) ;
361+ return ;
362+ }
363+
356364 const initResult = await init ( ) ;
357365
358366 if ( ! initResult ) {
You can’t perform that action at this time.
0 commit comments