fix(app): reject empty playback edits and align native checks

This commit is contained in:
AAA committed 2026-11-28 15:21:59 -05:00
1 parent dd8109b433
commit f75cc0a839
6 files changed
+100 -52

No files matched your search

+7 -4
View File
@@ -325,10 +325,13 @@ jobs:
$env:PIIK_CONTACT_PROBE = Join-Path $env:RUNNER_TEMP 'piik-contact.exe'
cmd /c "call `"$dev`" -arch=x64 -no_logo && cl /nologo /EHsc /W4 /D_CRT_SECURE_NO_WARNINGS prototype/channel-server/src/app_windows/test_contact.cpp /Fe:`"$env:PIIK_CONTACT_PROBE`" user32.lib"
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
$testName = 'app_windows::reveal::menu_tests::native_permission_caption_contact'
cargo +1.91.0 test --locked --manifest-path prototype/channel-server/Cargo.toml --features capture --lib $testName -- --ignored --exact --test-threads=1 --nocapture | Tee-Object -Variable testOutput
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
if ($testOutput -notcontains 'running 1 test') { throw "Expected to run $testName" }
$failed = @()
foreach ($kind in 'touch','pen') {
$testName = "app_windows::reveal::menu_tests::native_permission_caption_$kind"
cargo +1.91.0 test --locked --manifest-path prototype/channel-server/Cargo.toml --features capture --lib $testName -- --ignored --exact --test-threads=1 --nocapture | Tee-Object -Variable testOutput
if ($LASTEXITCODE -ne 0 -or $testOutput -notcontains 'running 1 test') { $failed += $kind }
}
if ($failed.Count) { throw "Permission caption checks failed for $($failed -join ', ')" }
- name: Compile the Windows input tests
id: compile_windows_input
if: ${{ !cancelled() && runner.os == 'Windows' && steps.compile_windows_app.outcome == 'success' }}