test(playwright): fix stale selectors after UI refactor (h1 headings, collapsed Topology/Audit disclosures, ParameterValueForm ids, method-select race)

This commit is contained in:
Joseph Doherty
2026-12-03 12:14:28 -05:00
parent 18311eb385
commit 5acb16ca07
23 changed files with 66 additions and 46 deletions
@@ -130,11 +130,11 @@ public class NavigationTests
// Verify the destination page actually rendered its heading (catches 500s
// and blank renders that a URL-only check would miss).
// Every mapped route renders its heading as an <h4> — tightened from the
// Every mapped route renders its heading as an <h1> — tightened from the
// broader "h1, h4, h5" to prevent strict-mode violations if multiple
// heading elements match.
var expectedHeading = RouteHeadings[expectedPath];
await Assertions.Expect(page.Locator("h4", new() { HasText = expectedHeading })).ToBeVisibleAsync();
await Assertions.Expect(page.Locator("h1", new() { HasText = expectedHeading })).ToBeVisibleAsync();
}
private static ILocatorAssertions Expect(ILocator locator) =>