@@ -8,13 +8,13 @@ test('sun and device session AI analysis covers contexts fingerprints and render
88 await page . goto ( '/app' , { waitUntil : 'load' } ) ;
99
1010 const results = await page . evaluate ( async ( { sunUrl, deviceUrl, apiUrl } ) => {
11- const [ sun , device , api , aiVerdictRuntime ] = await Promise . all ( [
11+ const [ { state } , sun , device , api , aiVerdictRuntime ] = await Promise . all ( [
12+ import ( '/js/state.js' ) ,
1213 import ( sunUrl ) ,
1314 import ( deviceUrl ) ,
1415 import ( apiUrl ) ,
1516 import ( '/js/ai-verdict-engine-runtime.js' ) ,
1617 ] ) ;
17- const state = window . _labState ;
1818 const outcomes = { } ;
1919 const saved = {
2020 importedData : JSON . parse ( JSON . stringify ( state . importedData || { } ) ) ,
@@ -354,14 +354,14 @@ test('light environment AI analysis covers audit room screen and onboarding verd
354354 await page . goto ( '/app' , { waitUntil : 'load' } ) ;
355355
356356 const results = await page . evaluate ( async ( { auditUrl, roomUrl, screenUrl, onboardingUrl } ) => {
357- const [ audit , roomAI , screenAI , onboarding , aiVerdictRuntime ] = await Promise . all ( [
357+ const [ { state } , audit , roomAI , screenAI , onboarding , aiVerdictRuntime ] = await Promise . all ( [
358+ import ( '/js/state.js' ) ,
358359 import ( auditUrl ) ,
359360 import ( roomUrl ) ,
360361 import ( screenUrl ) ,
361362 import ( onboardingUrl ) ,
362363 import ( '/js/ai-verdict-engine-runtime.js' ) ,
363364 ] ) ;
364- const state = window . _labState ;
365365 const outcomes = { } ;
366366 const saved = {
367367 importedData : JSON . parse ( JSON . stringify ( state . importedData || { } ) ) ,
@@ -633,13 +633,13 @@ test('light aggregate AI analysis covers channel burden and daily verdicts', asy
633633 await page . goto ( '/app' , { waitUntil : 'load' } ) ;
634634
635635 const results = await page . evaluate ( async ( { channelUrl, burdenUrl, todayUrl } ) => {
636- const [ channelAI , burdenAI , todayAI , aiVerdictRuntime ] = await Promise . all ( [
636+ const [ { state } , channelAI , burdenAI , todayAI , aiVerdictRuntime ] = await Promise . all ( [
637+ import ( '/js/state.js' ) ,
637638 import ( channelUrl ) ,
638639 import ( burdenUrl ) ,
639640 import ( todayUrl ) ,
640641 import ( '/js/ai-verdict-engine-runtime.js' ) ,
641642 ] ) ;
642- const state = window . _labState ;
643643 const outcomes = { } ;
644644 const saved = {
645645 importedData : JSON . parse ( JSON . stringify ( state . importedData || { } ) ) ,
0 commit comments