diff --git a/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Pages/QueryStringDrillInTests.cs b/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Pages/QueryStringDrillInTests.cs index 11672ff0..7d21bdd1 100644 --- a/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Pages/QueryStringDrillInTests.cs +++ b/tests/ZB.MOM.WW.ScadaBridge.CentralUI.Tests/Pages/QueryStringDrillInTests.cs @@ -13,6 +13,7 @@ using Microsoft.Extensions.Logging.Abstractions; using Microsoft.Extensions.Options; using NSubstitute; using ZB.MOM.WW.ScadaBridge.CentralUI.Components.Shared; +using ZB.MOM.WW.ScadaBridge.CentralUI.Services; using ZB.MOM.WW.ScadaBridge.Commons.Entities.Sites; using ZB.MOM.WW.ScadaBridge.Commons.Interfaces.Repositories; using ZB.MOM.WW.ScadaBridge.Commons.Interfaces.Services; @@ -161,6 +162,9 @@ public sealed class QueryStringDrillInTests Services.AddSingleton(Comms); Services.AddSingleton(new AlwaysConfirmDialogService()); + // M6 (K14): the SiteCallsReport page now injects IKpiHistoryQueryService + // for the Trends section. Provide a stand-in so these drill-in tests render. + Services.AddSingleton(Substitute.For()); var siteRepo = Substitute.For(); siteRepo.GetAllSitesAsync(Arg.Any())