feat(centralui): MainLayout/NavMenu delegate to ZB.MOM.WW.Theme ThemeShell + kit nav
This commit is contained in:
@@ -103,15 +103,18 @@ public class AuditLogPageScaffoldTests : BunitContext
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Clicks the collapsible section header whose title matches, expanding it.
|
||||
/// Nav sections are collapsed by default, so a section's items are only in
|
||||
/// the DOM once expanded.
|
||||
/// Asserts the named rail section is present. After the ZB.MOM.WW.Theme
|
||||
/// adoption (Task 2.4) nav sections are the kit's <c>NavRailSection</c> —
|
||||
/// native <c><details class="rail-section"></c> disclosures that are
|
||||
/// open by default, so a section's items are already in the DOM (no click
|
||||
/// needed, no JS). This helper just confirms the section's
|
||||
/// <c>summary.rail-eyebrow-toggle</c> eyebrow exists for the given title.
|
||||
/// </summary>
|
||||
private static void ExpandNavSection(IRenderedComponent<NavMenu> cut, string title)
|
||||
{
|
||||
var toggle = cut.FindAll("button.nav-section-toggle")
|
||||
.Single(b => b.TextContent.Contains(title, StringComparison.Ordinal));
|
||||
toggle.Click();
|
||||
Assert.Contains(
|
||||
cut.FindAll("details.rail-section > summary.rail-eyebrow-toggle"),
|
||||
s => s.TextContent.Contains(title, StringComparison.Ordinal));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user