@@ -38,6 +38,12 @@ private static void BuildPlayer(string defaultBuildPath, BuildOptions buildOptio
3838 {
3939 // Clean up AltTester settings after build
4040 AltBuilder . RemoveAltTesterFromScriptingDefineSymbols ( BuildTargetGroup . Standalone ) ;
41+
42+ // Clean up custom e2e testing define
43+ var defineSymbols = PlayerSettings . GetScriptingDefineSymbolsForGroup ( BuildTargetGroup . Standalone ) ;
44+ defineSymbols = defineSymbols . Replace ( "IMMUTABLE_E2E_TESTING;" , "" ) . Replace ( ";IMMUTABLE_E2E_TESTING" , "" ) . Replace ( "IMMUTABLE_E2E_TESTING" , "" ) ;
45+ PlayerSettings . SetScriptingDefineSymbolsForGroup ( BuildTargetGroup . Standalone , defineSymbols ) ;
46+
4147 RemoveAltFromScene ( buildPlayerOptions . scenes [ 0 ] ) ;
4248 }
4349 }
@@ -66,7 +72,7 @@ private static BuildPlayerOptions CreateBuildPlayerOptions(string buildPath, Bui
6672 {
6773 scenes = new [ ]
6874 {
69- "Assets/Scenes/Passport/SelectAuthMethod .unity" ,
75+ "Assets/Scenes/Passport/Initialisation .unity" ,
7076 "Assets/Scenes/Passport/UnauthenticatedScene.unity" ,
7177 "Assets/Scenes/Passport/AuthenticatedScene.unity" ,
7278 "Assets/Scenes/Passport/ZkEvm/ZkEvmGetBalance.unity" ,
@@ -85,6 +91,15 @@ private static BuildPlayerOptions CreateBuildPlayerOptions(string buildPath, Bui
8591 private static void SetupAltTester ( BuildPlayerOptions buildPlayerOptions )
8692 {
8793 AltBuilder . AddAltTesterInScriptingDefineSymbolsGroup ( BuildTargetGroup . Standalone ) ;
94+
95+ // Add custom define for e2e testing to enable default browser behavior
96+ var defineSymbols = PlayerSettings . GetScriptingDefineSymbolsForGroup ( BuildTargetGroup . Standalone ) ;
97+ if ( ! defineSymbols . Contains ( "IMMUTABLE_E2E_TESTING" ) )
98+ {
99+ defineSymbols += ";IMMUTABLE_E2E_TESTING" ;
100+ PlayerSettings . SetScriptingDefineSymbolsForGroup ( BuildTargetGroup . Standalone , defineSymbols ) ;
101+ }
102+
88103 AltBuilder . CreateJsonFileForInputMappingOfAxis ( ) ;
89104
90105 var instrumentationSettings = new AltInstrumentationSettings ( ) ;
0 commit comments