feat(dashboard): settings page shows RecentFaultLimit and RecentSessionLimit
This commit is contained in:
@@ -73,6 +73,26 @@ public sealed class SettingsPageTagVisibilityRenderTests
|
||||
Assert.Contains("Dashboard role mapping", html, StringComparison.Ordinal);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <c>RecentFaultLimit</c> and <c>RecentSessionLimit</c> reach the page. Non-default values
|
||||
/// prove the projection is plumbed through, not just that the defaults happen to render.
|
||||
/// </summary>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
[Fact]
|
||||
public async Task SettingsPage_RendersRecentFaultAndSessionLimits()
|
||||
{
|
||||
string html = await RenderAsync(new DashboardOptions
|
||||
{
|
||||
RecentFaultLimit = 123,
|
||||
RecentSessionLimit = 456,
|
||||
});
|
||||
|
||||
Assert.Contains("Recent fault limit", html, StringComparison.Ordinal);
|
||||
Assert.Contains("123", html, StringComparison.Ordinal);
|
||||
Assert.Contains("Recent session limit", html, StringComparison.Ordinal);
|
||||
Assert.Contains("456", html, StringComparison.Ordinal);
|
||||
}
|
||||
|
||||
private static async Task<string> RenderAsync(DashboardOptions dashboard)
|
||||
{
|
||||
EffectiveGatewayConfiguration configuration =
|
||||
|
||||
Reference in New Issue
Block a user