@@ -749,6 +749,45 @@ describe("qa suite planning helpers", () => {
749749 ) . toBe ( true ) ;
750750 } ) ;
751751
752+ it . each ( [
753+ {
754+ reason : "explicit scenario isolation" ,
755+ makeScenario : ( ) => makeQaSuiteTestScenario ( "isolated" , { suiteIsolation : "isolated" } ) ,
756+ } ,
757+ {
758+ reason : "gateway runtime changes" ,
759+ makeScenario : ( ) =>
760+ makeQaSuiteTestScenario ( "runtime-options" , { gatewayRuntime : { forwardHostHome : true } } ) ,
761+ } ,
762+ {
763+ reason : "scenario-owned plugins" ,
764+ makeScenario : ( ) => makeQaSuiteTestScenario ( "plugin" , { plugins : [ "diagnostics-otel" ] } ) ,
765+ } ,
766+ {
767+ reason : "memory state" ,
768+ makeScenario : ( ) => makeQaSuiteTestScenario ( "memory" , { surface : "memory" } ) ,
769+ } ,
770+ {
771+ reason : "image generation setup" ,
772+ makeScenario : ( ) =>
773+ makeQaSuiteTestScenario ( "image-generation" , { config : { ensureImageGeneration : true } } ) ,
774+ } ,
775+ {
776+ reason : "state-mutating flow calls" ,
777+ makeScenario : ( ) => readQaScenarioById ( "plugin-lifecycle-hot-reload" ) ,
778+ } ,
779+ ] ) ( "isolates serial runs for $reason" , ( { makeScenario } ) => {
780+ const scenario = makeScenario ( ) ;
781+
782+ expect ( scenarioRequiresIsolatedQaSuiteWorker ( scenario ) ) . toBe ( true ) ;
783+ expect (
784+ shouldUseIsolatedQaSuiteScenarioWorkers ( {
785+ scenarios : [ makeQaSuiteTestScenario ( "baseline" ) , scenario ] ,
786+ concurrency : 1 ,
787+ } ) ,
788+ ) . toBe ( true ) ;
789+ } ) ;
790+
752791 it ( "does not isolate plain serial scenario runs" , ( ) => {
753792 expect (
754793 shouldUseIsolatedQaSuiteScenarioWorkers ( {
0 commit comments