@@ -74,10 +74,9 @@ export default function () {
7474
7575 event . dispatcher . on ( event . all . result , ( ) => {
7676 // Skip _finishTest for all helpers if any browser helper restarts to avoid double cleanup
77- // Note: restart: false is equivalent to restart: 'context' per documentation
7877 const hasBrowserRestart = Object . values ( helpers ) . some ( helper =>
79- ( helper . config && ( helper . config . restart === 'browser' || helper . config . restart === 'context' || helper . config . restart === false || helper . config . restart === true ) ) ||
80- ( helper . options && ( helper . options . restart === 'browser' || helper . options . restart === 'context' || helper . options . restart === false || helper . options . restart === true ) )
78+ ( helper . config && ( helper . config . restart === 'browser' || helper . config . restart === 'context' || helper . config . restart === true ) ) ||
79+ ( helper . options && ( helper . options . restart === 'browser' || helper . options . restart === 'context' || helper . options . restart === true ) )
8180 )
8281
8382 Object . keys ( helpers ) . forEach ( key => {
@@ -90,10 +89,9 @@ export default function () {
9089
9190 event . dispatcher . on ( event . all . after , ( ) => {
9291 // Skip _cleanup for all helpers if any browser helper restarts to avoid double cleanup
93- // Note: restart: false is equivalent to restart: 'context' per documentation
9492 const hasBrowserRestart = Object . values ( helpers ) . some ( helper =>
95- ( helper . config && ( helper . config . restart === 'browser' || helper . config . restart === 'context' || helper . config . restart === false || helper . config . restart === true ) ) ||
96- ( helper . options && ( helper . options . restart === 'browser' || helper . options . restart === 'context' || helper . options . restart === false || helper . options . restart === true ) )
93+ ( helper . config && ( helper . config . restart === 'browser' || helper . config . restart === 'context' || helper . config . restart === true ) ) ||
94+ ( helper . options && ( helper . options . restart === 'browser' || helper . options . restart === 'context' || helper . options . restart === true ) )
9795 )
9896
9997 Object . keys ( helpers ) . forEach ( key => {
0 commit comments