test(central-ui): realign analyzer tests with the reworked script-call API

This commit is contained in:
Joseph Doherty
2026-05-16 15:04:06 -04:00
parent 3cc174c3cd
commit b949dc4183
2 changed files with 32 additions and 72 deletions

View File

@@ -147,16 +147,18 @@ public class DataConnectionsPageTests : BunitContext
}
[Fact]
public void LegacyDataConnectionsRoute_IsDeclaredOnListPage()
public void DataConnectionsRoutes_AreDeclaredOnListPage()
{
// Old bookmarks to /admin/data-connections must still resolve.
// The page moved from Admin to Design; both the canonical
// /design/connections route and the /design/data-connections alias
// must resolve to the list page.
var routes = typeof(DataConnectionsPage).GetCustomAttributes(
typeof(Microsoft.AspNetCore.Components.RouteAttribute), inherit: false)
.Cast<Microsoft.AspNetCore.Components.RouteAttribute>()
.Select(a => a.Template)
.ToList();
Assert.Contains("/admin/connections", routes);
Assert.Contains("/admin/data-connections", routes);
Assert.Contains("/design/connections", routes);
Assert.Contains("/design/data-connections", routes);
}
}