test(ui): align top bar mode guard with live decision
This commit is contained in:
@@ -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 */ }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user