test(ui): align top bar mode guard with live decision

This commit is contained in:
2026-11-02 11:43:57 -08:00
parent c856d11fb5
commit 264a90dae8
2 changed files with 16 additions and 17 deletions
+3 -2
View File
@@ -44,6 +44,7 @@ public sealed class TopBarModeTests
// The dev machine may hold a real saved OAuth session (loads synchronously
// during the ctor), so the sign-in state is forced deterministically.
vm.IsConnected = false;
vm.EditingActive = false; // EDIT off selects Go Live instead of Test Stream.
// Default (nothing armed) = the Record world: Go says "Start Recording",
// no Test — but the account zone is app-level and stays (signed out →
@@ -94,7 +95,7 @@ public sealed class TopBarModeTests
vm.IsRecording = false;
vm.StreamStatus = StreamStatus.Streaming;
Assert.Equal("LIVE", vm.RunningText);
Assert.Equal("#e94560", vm.RunningDotBrush);
Assert.Equal("#ff5451", vm.RunningDotBrush);
vm.IsTestStream = true;
Assert.Equal("TEST", vm.RunningText);
Assert.Equal("#9c6f1c", vm.RunningDotBrush);
@@ -106,4 +107,4 @@ public sealed class TopBarModeTests
try { File.Delete(tempDb); } catch { /* best-effort cleanup */ }
}
}
}
}