test(central-ui): realign analyzer tests with the reworked script-call API
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user