@@ -312,7 +312,7 @@ class PlaybackState {
312
312
this . isPlayFromHere = true
313
313
314
314
// to determine if control flow commands exist in test commands
315
- const playbackTree = createPlaybackTree ( test . commands . peek ( ) )
315
+ const playbackTree = createPlaybackTree ( test . commands . slice ( ) )
316
316
317
317
if ( playbackTree . containsControlFlow ) {
318
318
const choseProceed = await ModalState . showAlert ( {
@@ -372,11 +372,11 @@ class PlaybackState {
372
372
if ( controls . playFromHere ) {
373
373
await this . initPlayFromHere ( command , test )
374
374
this . runningQueue = this . runningQueueFromIndex (
375
- test . commands . peek ( ) ,
375
+ test . commands . slice ( ) ,
376
376
currentPlayingIndex
377
377
)
378
378
} else {
379
- this . runningQueue = test . commands . peek ( )
379
+ this . runningQueue = test . commands . slice ( )
380
380
}
381
381
const pluginsLogs = { }
382
382
if ( PluginManager . plugins . length )
@@ -476,7 +476,7 @@ class PlaybackState {
476
476
this . _testsToRun . shift ( )
477
477
// pull the next test off the test queue for execution
478
478
this . currentRunningTest = this . _testsToRun . shift ( )
479
- this . runningQueue = this . currentRunningTest . commands . peek ( )
479
+ this . runningQueue = this . currentRunningTest . commands . slice ( )
480
480
this . clearStack ( )
481
481
this . errors = 0
482
482
this . forceTestCaseFailure = false
@@ -773,7 +773,7 @@ class PlaybackState {
773
773
true
774
774
)
775
775
this . currentRunningTest = testCase
776
- this . runningQueue = testCase . commands . peek ( )
776
+ this . runningQueue = testCase . commands . slice ( )
777
777
let playbackTree = createPlaybackTree ( this . runningQueue )
778
778
this . setCurrentExecutingCommandNode ( playbackTree . startingCommandNode )
779
779
return playbackTree . startingCommandNode
@@ -784,7 +784,7 @@ class PlaybackState {
784
784
const top = this . callstack . pop ( )
785
785
this . currentRunningTest = top . caller
786
786
this . setCurrentExecutingCommandNode ( top . position . next )
787
- this . runningQueue = top . caller . commands . peek ( )
787
+ this . runningQueue = top . caller . commands . slice ( )
788
788
UiState . selectTest (
789
789
this . stackCaller ,
790
790
this . currentRunningSuite ,
0 commit comments