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
@@ -37,7 +37,7 @@ public class SharedScriptCrudTests
var page = await _pw.NewAuthenticatedPageAsync();
await page.GotoAsync($"{PlaywrightFixture.BaseUrl}/design/shared-scripts");
await page.WaitForLoadStateAsync(LoadState.NetworkIdle);
await Assertions.Expect(page.Locator("h4:has-text('Shared Scripts')")).ToBeVisibleAsync();
await Assertions.Expect(page.Locator("h1:has-text('Shared Scripts')")).ToBeVisibleAsync();
// Narrow the list so the card locator stays unambiguous even with many scripts.
await page.Locator("input[placeholder='Filter by name or code…']").FillAsync(name);
@@ -85,7 +85,7 @@ public class SharedScriptCrudTests
await page.GotoAsync($"{PlaywrightFixture.BaseUrl}/design/shared-scripts/create");
await page.WaitForLoadStateAsync(LoadState.NetworkIdle);
await Assertions.Expect(page.Locator("h4:has-text('New Shared Script')")).ToBeVisibleAsync();
await Assertions.Expect(page.Locator("h1:has-text('New Shared Script')")).ToBeVisibleAsync();
var nameInput = page.Locator("input[type=text].form-control.form-control-sm");
await Assertions.Expect(nameInput).ToBeVisibleAsync();