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
@@ -80,7 +80,7 @@ public class NotificationActionTests
await page.GotoAsync($"{PlaywrightFixture.BaseUrl}{NotificationReportUrl}");
await page.WaitForLoadStateAsync(LoadState.NetworkIdle);
await Assertions.Expect(page.Locator("h4:has-text('Notification Report')")).ToBeVisibleAsync();
await Assertions.Expect(page.Locator("h1:has-text('Notification Report')")).ToBeVisibleAsync();
// Narrow to the seeded row: Parked status (so only Retry/Discard-bearing rows
// render) plus the unique subject keyword. The status select is a @bind
@@ -207,7 +207,7 @@ public class NotificationActionTests
await page.GotoAsync($"{PlaywrightFixture.BaseUrl}{NotificationReportUrl}");
await page.WaitForLoadStateAsync(LoadState.NetworkIdle);
await Assertions.Expect(page.Locator("h4:has-text('Notification Report')")).ToBeVisibleAsync();
await Assertions.Expect(page.Locator("h1:has-text('Notification Report')")).ToBeVisibleAsync();
// #no-list is an exact-match text input bound @bind (commit-on-change), so
// FillAsync (which only fires `input`) must be followed by an explicit
@@ -263,7 +263,7 @@ public class NotificationActionTests
await page.GotoAsync($"{PlaywrightFixture.BaseUrl}{NotificationReportUrl}");
await page.WaitForLoadStateAsync(LoadState.NetworkIdle);
await Assertions.Expect(page.Locator("h4:has-text('Notification Report')")).ToBeVisibleAsync();
await Assertions.Expect(page.Locator("h1:has-text('Notification Report')")).ToBeVisibleAsync();
// Narrow to the seeded row by its exact ListName marker (+ Parked status).
await page.Locator("#no-list").FillAsync(marker);
@@ -341,7 +341,7 @@ public class NotificationActionTests
await page.GotoAsync($"{PlaywrightFixture.BaseUrl}{NotificationReportUrl}");
await page.WaitForLoadStateAsync(LoadState.NetworkIdle);
await Assertions.Expect(page.Locator("h4:has-text('Notification Report')")).ToBeVisibleAsync();
await Assertions.Expect(page.Locator("h1:has-text('Notification Report')")).ToBeVisibleAsync();
// Narrow to the pair by the exact ListName marker (commit the @bind value with a
// change dispatch — FillAsync only fires `input`), then Query.
@@ -416,7 +416,7 @@ public class NotificationActionTests
await page.GotoAsync($"{PlaywrightFixture.BaseUrl}{NotificationReportUrl}");
await page.WaitForLoadStateAsync(LoadState.NetworkIdle);
await Assertions.Expect(page.Locator("h4:has-text('Notification Report')")).ToBeVisibleAsync();
await Assertions.Expect(page.Locator("h1:has-text('Notification Report')")).ToBeVisibleAsync();
await page.Locator("#no-list").FillAsync(marker);
await page.Locator("#no-list").DispatchEventAsync("change");