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 0849193 commit c4e4918
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
18 changes: 9 additions & 9 deletions sample/Assets/Scenes/SetCallTimeout.unity
Original file line number Diff line number Diff line change
Expand Up @@ -557,8 +557,8 @@ MonoBehaviour:
m_TargetGraphic: {fileID: 66309839}
m_HandleRect: {fileID: 66309838}
m_Direction: 0
m_Value: 0
m_Size: 1
m_Value: 1
m_Size: 0.9999999
m_NumberOfSteps: 0
m_OnValueChanged:
m_PersistentCalls:
Expand Down Expand Up @@ -739,8 +739,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 1015.1455, y: 0}
m_SizeDelta: {x: 2030.291, y: 0}
m_AnchoredPosition: {x: 1141.847, y: 0}
m_SizeDelta: {x: 2283.694, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &410008536
MonoBehaviour:
Expand Down Expand Up @@ -966,8 +966,8 @@ MonoBehaviour:
m_OnClick:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 0}
m_TargetAssemblyTypeName: ZkEvmGetBalance, Assembly-CSharp
- m_Target: {fileID: 1192763474}
m_TargetAssemblyTypeName: SetCallTimeoutScript, Assembly-CSharp
m_MethodName: Cancel
m_Mode: 1
m_Arguments:
Expand Down Expand Up @@ -1052,8 +1052,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 1015.1455, y: 0}
m_SizeDelta: {x: 2030.291, y: 0}
m_AnchoredPosition: {x: 1141.847, y: 0}
m_SizeDelta: {x: 2283.694, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &783923066
MonoBehaviour:
Expand Down Expand Up @@ -1195,7 +1195,7 @@ MonoBehaviour:
m_TargetGraphic: {fileID: 1741513414}
m_HandleRect: {fileID: 1741513413}
m_Direction: 2
m_Value: 0
m_Value: 1
m_Size: 1
m_NumberOfSteps: 0
m_OnValueChanged:
Expand Down
8 changes: 6 additions & 2 deletions sample/Tests/test_windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ function Run-Pytest {
[string]$testFile
)
Write-Output "Running pytest for $testFile..."
Start-Process -FilePath "pytest" -ArgumentList $testFile -NoNewWindow -PassThru | Wait-Process
$process = Start-Process -FilePath "pytest" -ArgumentList "-x", $testFile -NoNewWindow -PassThru -Wait
if ($process.ExitCode -ne 0) {
Write-Output "Test failed for $testFile. Stopping execution."
exit $process.ExitCode
}
}

# Function to stop Chrome if it's running
Expand Down Expand Up @@ -105,7 +109,7 @@ function Logout {
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 c4e4918

Please sign in to comment.