Hold only successful Channel Edit completion delivery in the Windows test harness. Verify the first edit and replacement independently on disposable beta14, then assert old delivery leaves the busy replacement presentation unchanged. Share the private fixture runner across the channel edit and bandwidth smokes, and record the live receipt.
4.1 KiB
Successful channel edit delivered after reconnect
The Windows Slint smoke used a private 6.0.0-beta14 loopback server. Bootstrap WebQuery created permanent scratch channel Channel Edit Receipt QA with topic Fixture seed and granted b_channel_modify_topic to the disposable guest group. Query was disabled for the live scenario. Both guests were muted; the shared harness checked that no audio devices opened.
The Windows test-only gate holds a successful result for the exact editor ID and target after the normal controller returns, just before it sends ServerEditorComplete. It does not delay socket traffic or inject replies. Upon release, an ordered marker follows the event through the runtime's snapshot publication and Slint effect pump.
| Checkpoint | Observation |
|---|---|
| Before the first edit | The observer's channel_info on channel 2 reported Fixture seed. |
| First success held | The observer read Fixture seed / original edit before the initiator disconnected. It stayed connected and saw the original guest leave. |
| Same tab, new connection | Session 0 became 1, generation 1 became 2, and the initiator UID changed. The observer UID stayed the same. The replacement opened Channel Info and a distinct editor for the same channel; both initially showed Fixture seed / original edit. |
| Replacement success held | The actual Slint edit box was busy with Fixture seed / original edit / replacement edit. The replacement roster and the independent observer also had that newer server topic. The separately queried Channel Info panel had shown the preceding topic; it was not the edit box or the persisted-topic check. |
| Old success released | The replacement editor remained open and busy with its exact draft. The pre/post comparison covered the channel row, detail labels and values, viewed tab, input owner, shell and runtime status and errors, and dialog error. The test permits only an empty shell error or the normal changed-target notice already present at baseline; whichever is present must stay identical. The first run observed The captured server or client has changed at baseline before the original success was released. |
| Replacement success released | The replacement's own result closed its editor. The observer again read Fixture seed / original edit / replacement edit. The original write was not rolled back; the second write superseded it. |
The observer used its own connected core. Its channel_info returns the topic from that core's server-fed roster, with a wire request for the channel description. It does not read the initiator's cache or use WebQuery for the topic.
The exact offline, locked test reported 1 passed, 0 failed, 812 filtered out in 75.49 s using pinned WebRTC. The fixture stopped and removed its private runtime. An independent check found zero UDP listeners on 19987, zero TCP listeners on 30053 and 19080, and zero matching private runtime directories. This covers a successful topic edit and delayed completion delivery, not channel create/delete, loss of the socket before acknowledgement, or exhaustive CRUD parity.
Reproduce
Use the checked-in runner with a separately staged Windows beta14 release. The worktree path must not contain spaces when setting the Cargo runner below, and the three fixture ports must be free. The runner creates fresh private state and a temporary bootstrap key; no credentials or executables are checked in.
$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::channel_edit_replacement::acknowledged_channel_edit_cannot_complete_replacement_editor_on_beta14