@@ -14,6 +14,7 @@ const serverPort = Number(
1414 process . env . SIMDECK_INTEGRATION_STREAM_PORT ?? "4520" ,
1515) ;
1616const serverUrl = `http://127.0.0.1:${ serverPort } ` ;
17+ const serverAccessToken = "integration" ;
1718const fixtureBundleId = "dev.nativescript.simdeck.integration.fixture" ;
1819const fixtureUrlScheme = "simdeck-fixture" ;
1920const fixtureAnimateUrl = "simdeck-fixture://animate" ;
@@ -100,10 +101,15 @@ async function main() {
100101 const { width, height } = pngSize ( screenshotPath ) ;
101102 console . log ( `reference screenshot ${ width } x${ height } ` ) ;
102103
104+ const viewerUrl = new URL ( serverUrl ) ;
105+ viewerUrl . searchParams . set ( "device" , simulatorUDID ) ;
106+ viewerUrl . searchParams . set ( "simdeckToken" , serverAccessToken ) ;
107+ viewerUrl . searchParams . set ( "stream" , "webrtc" ) ;
108+
103109 runNodeScript (
104110 "scripts/e2e-webrtc-reliability.mjs" ,
105111 [
106- ` ${ serverUrl } /?device= ${ encodeURIComponent ( simulatorUDID ) } ` ,
112+ viewerUrl . toString ( ) ,
107113 String ( process . env . SIMDECK_E2E_WEBRTC_MS ?? "20000" ) ,
108114 ] ,
109115 {
@@ -139,7 +145,7 @@ function startServer() {
139145 "--client-root" ,
140146 path . join ( root , "packages" , "client" , "dist" ) ,
141147 "--access-token" ,
142- "integration" ,
148+ serverAccessToken ,
143149 "--video-codec" ,
144150 "software" ,
145151 "--stream-quality" ,
0 commit comments