Skip to content

Commit

Permalink
test: add missing scene to build script, fix windows chrome path
Browse files Browse the repository at this point in the history
  • Loading branch information
nattb8 committed Nov 18, 2024
1 parent 3d43561 commit 0849193
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
3 changes: 2 additions & 1 deletion sample/Assets/Editor/MacBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ private static BuildPlayerOptions CreateBuildPlayerOptions(string buildPath, Bui
"Assets/Scenes/ZkEvmGetTransactionReceipt.unity",
"Assets/Scenes/ZkEvmSendTransaction.unity",
"Assets/Scenes/ImxNftTransfer.unity",
"Assets/Scenes/ZkEVMSignTypedData.unity"
"Assets/Scenes/ZkEVMSignTypedData.unity",
"Assets/Scenes/SetCallTimeout.unity"
},
locationPathName = buildPath,
target = BuildTarget.StandaloneOSX,
Expand Down
3 changes: 2 additions & 1 deletion sample/Assets/Editor/MobileBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ private static BuildPlayerOptions CreateBuildPlayerOptions(string buildPath, Bui
"Assets/Scenes/ZkEvmGetTransactionReceipt.unity",
"Assets/Scenes/ZkEvmSendTransaction.unity",
"Assets/Scenes/ImxNftTransfer.unity",
"Assets/Scenes/ZkEVMSignTypedData.unity"
"Assets/Scenes/ZkEVMSignTypedData.unity",
"Assets/Scenes/SetCallTimeout.unity"
},
locationPathName = buildPath,
target = platform,
Expand Down
3 changes: 2 additions & 1 deletion sample/Assets/Editor/WindowsBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ private static BuildPlayerOptions CreateBuildPlayerOptions(string buildPath, Bui
"Assets/Scenes/ZkEvmGetTransactionReceipt.unity",
"Assets/Scenes/ZkEvmSendTransaction.unity",
"Assets/Scenes/ImxNftTransfer.unity",
"Assets/Scenes/ZkEVMSignTypedData.unity"
"Assets/Scenes/ZkEVMSignTypedData.unity",
"Assets/Scenes/SetCallTimeout.unity"
},
locationPathName = buildPath,
target = BuildTarget.StandaloneWindows64,
Expand Down
4 changes: 4 additions & 0 deletions sample/Tests/test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ def test_0_other_functions(self):
output = self.altdriver.find_object(By.NAME, "Output")
self.assertEqual("Set call timeout to: 600000ms", output.get_text())

# Go back to authenticated scene
self.altdriver.find_object(By.NAME, "CancelButton").tap()
self.altdriver.wait_for_current_scene_to_be("AuthenticatedScene")

def test_1_passport_functions(self):
output = self.altdriver.find_object(By.NAME, "Output")

Expand Down
12 changes: 11 additions & 1 deletion sample/Tests/test_windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,17 @@ function Login {
function Logout {
# Start Chrome for remote debugging
Write-Output "Starting Chrome..."
$chromePath = (Get-Command chrome.exe).Source
$chromePath = "C:\Program Files\Google\Chrome\Application\chrome.exe"

if (-not (Test-Path $chromePath)) {
$chromePath = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
}

if (-not (Test-Path $chromePath)) {
Write-Output "Chrome executable not found."
exit
}

Start-Process -FilePath $chromePath -ArgumentList "--remote-debugging-port=9222"

Write-Output "Running python script to logout..."
Expand Down

0 comments on commit 0849193

Please sign in to comment.