Verify length rejection, cancellation, independent and combined field saves, and exact restoration with a second guest on a private fixture.
2.6 KiB
Windows beta14 server host button settings
The disposable loopback fixture granted only b_virtualserver_modify_hostbutton in addition to the default guest rights. Bootstrap WebQuery confirmed all three seeded fields before Query was turned off. The actual Slint inputs rejected and retained 1,025 ASCII characters in each field, with an error only on the field under test. The editor's declared limit is 1,024 characters; beta14 accepted the short values below, but its maximum length was not measured and the oversized drafts were not sent to the server.
The second guest read all three properties through independent server_info calls. The rest of the checked server text and banner settings and the listing flag stayed unchanged. A fresh editor showed the changed field after each single save and all three values after cancel, the combined save, and restoration. Each URL path below is prefixed by https://button.invalid.
| Stage | Tooltip | Link path | Image path |
|---|---|---|---|
| Seed and cancel | Fixture base button | /base | /base.png |
| Tooltip only | Fixture single button | /base | /base.png |
| Link only | Fixture single button | /single | /base.png |
| Image only | Fixture single button | /single | /single.png |
| Combined | Fixture combined button | /combined | /combined.png |
| Restored | Fixture base button | /base | /base.png |
The exact offline, locked Windows test with pinned WebRTC passed: 1 passed, 0 failed, 814 filtered out in 138.70 s. The runner stopped beta14 and removed its runtime; the post-run check found zero listeners on UDP 19987 and TCP 30053/19080 and zero matching private runtime directories. This was configuration and readback only: no browser launch, link activation, image fetch, or rendering was exercised.
Reproduce
Use the checked-in runner with a staged Windows beta14 release, pinned WebRTC, and the fixture ports free. The Cargo runner path must not contain spaces.
$env:TEAMSPEACH_BETA14_RELEASE = 'C:/path/to/staged/beta14/release'
$env:LK_CUSTOM_WEBRTC = 'C:/path/to/pinned/webrtc'
$env:CARGO_TARGET_DIR = Join-Path $PWD 'target/cargo-capacity'
$runner = (Resolve-Path 'native/tests/fixtures/beta14-server-admin.ps1').Path
$env:CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_RUNNER = "powershell.exe -NoProfile -ExecutionPolicy Bypass -File $runner"
cargo test --offline --locked --target x86_64-pc-windows-msvc -p teamspeach-native --no-default-features --features webrtc,test-harness --lib -- --include-ignored --test-threads=1 --nocapture --exact smoke::tabs::server_capacity::host_button::server_host_button_roundtrip_on_beta14