Skip to content

Commit 0849193

Browse files
committed
test: add missing scene to build script, fix windows chrome path
1 parent 3d43561 commit 0849193

File tree

5 files changed

+21
-4
lines changed

5 files changed

+21
-4
lines changed

sample/Assets/Editor/MacBuilder.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ private static BuildPlayerOptions CreateBuildPlayerOptions(string buildPath, Bui
7272
"Assets/Scenes/ZkEvmGetTransactionReceipt.unity",
7373
"Assets/Scenes/ZkEvmSendTransaction.unity",
7474
"Assets/Scenes/ImxNftTransfer.unity",
75-
"Assets/Scenes/ZkEVMSignTypedData.unity"
75+
"Assets/Scenes/ZkEVMSignTypedData.unity",
76+
"Assets/Scenes/SetCallTimeout.unity"
7677
},
7778
locationPathName = buildPath,
7879
target = BuildTarget.StandaloneOSX,

sample/Assets/Editor/MobileBuilder.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ private static BuildPlayerOptions CreateBuildPlayerOptions(string buildPath, Bui
105105
"Assets/Scenes/ZkEvmGetTransactionReceipt.unity",
106106
"Assets/Scenes/ZkEvmSendTransaction.unity",
107107
"Assets/Scenes/ImxNftTransfer.unity",
108-
"Assets/Scenes/ZkEVMSignTypedData.unity"
108+
"Assets/Scenes/ZkEVMSignTypedData.unity",
109+
"Assets/Scenes/SetCallTimeout.unity"
109110
},
110111
locationPathName = buildPath,
111112
target = platform,

sample/Assets/Editor/WindowsBuilder.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ private static BuildPlayerOptions CreateBuildPlayerOptions(string buildPath, Bui
7272
"Assets/Scenes/ZkEvmGetTransactionReceipt.unity",
7373
"Assets/Scenes/ZkEvmSendTransaction.unity",
7474
"Assets/Scenes/ImxNftTransfer.unity",
75-
"Assets/Scenes/ZkEVMSignTypedData.unity"
75+
"Assets/Scenes/ZkEVMSignTypedData.unity",
76+
"Assets/Scenes/SetCallTimeout.unity"
7677
},
7778
locationPathName = buildPath,
7879
target = BuildTarget.StandaloneWindows64,

sample/Tests/test/test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ def test_0_other_functions(self):
3333
output = self.altdriver.find_object(By.NAME, "Output")
3434
self.assertEqual("Set call timeout to: 600000ms", output.get_text())
3535

36+
# Go back to authenticated scene
37+
self.altdriver.find_object(By.NAME, "CancelButton").tap()
38+
self.altdriver.wait_for_current_scene_to_be("AuthenticatedScene")
39+
3640
def test_1_passport_functions(self):
3741
output = self.altdriver.find_object(By.NAME, "Output")
3842

sample/Tests/test_windows.ps1

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,17 @@ function Login {
9595
function Logout {
9696
# Start Chrome for remote debugging
9797
Write-Output "Starting Chrome..."
98-
$chromePath = (Get-Command chrome.exe).Source
98+
$chromePath = "C:\Program Files\Google\Chrome\Application\chrome.exe"
99+
100+
if (-not (Test-Path $chromePath)) {
101+
$chromePath = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
102+
}
103+
104+
if (-not (Test-Path $chromePath)) {
105+
Write-Output "Chrome executable not found."
106+
exit
107+
}
108+
99109
Start-Process -FilePath $chromePath -ArgumentList "--remote-debugging-port=9222"
100110

101111
Write-Output "Running python script to logout..."

0 commit comments

Comments
 (0)