test(playwright): fix stale selectors after UI refactor (h1 headings, collapsed Topology/Audit disclosures, ParameterValueForm ids, method-select race)
This commit is contained in:
+4
-4
@@ -91,7 +91,7 @@ public class SmsNotificationE2ETests
|
||||
await page.WaitForLoadStateAsync(LoadState.NetworkIdle);
|
||||
|
||||
// RENDER-CRASH GATE: the heading only appears if the new page's circuit rendered cleanly.
|
||||
await Assertions.Expect(page.Locator("h4:has-text('SMS Configuration')")).ToBeVisibleAsync();
|
||||
await Assertions.Expect(page.Locator("h1:has-text('SMS Configuration')")).ToBeVisibleAsync();
|
||||
|
||||
if (!alreadyExists)
|
||||
{
|
||||
@@ -160,7 +160,7 @@ public class SmsNotificationE2ETests
|
||||
await page.GotoAsync($"{PlaywrightFixture.BaseUrl}{ListsUrl}/create");
|
||||
await page.WaitForLoadStateAsync(LoadState.NetworkIdle);
|
||||
|
||||
await Assertions.Expect(page.Locator("h4:has-text('Add Notification List')")).ToBeVisibleAsync();
|
||||
await Assertions.Expect(page.Locator("h1:has-text('Add Notification List')")).ToBeVisibleAsync();
|
||||
|
||||
// The create form has the list-name text input and the Type <select>. The select's
|
||||
// option values are the NotificationType enum names ("Email"/"Sms"); select by value.
|
||||
@@ -182,7 +182,7 @@ public class SmsNotificationE2ETests
|
||||
|
||||
// Blazor enhanced navigation (SignalR round-trip) loads the edit form's data.
|
||||
await page.WaitForLoadStateAsync(LoadState.NetworkIdle);
|
||||
await Assertions.Expect(page.Locator("h4:has-text('Edit Notification List')")).ToBeVisibleAsync();
|
||||
await Assertions.Expect(page.Locator("h1:has-text('Edit Notification List')")).ToBeVisibleAsync();
|
||||
|
||||
// CHANNEL-AWARE ASSERTION: SMS list → phone input present, email input absent.
|
||||
await Assertions.Expect(page.Locator("input[type=tel].form-control")).ToBeVisibleAsync(new() { Timeout = 10_000 });
|
||||
@@ -226,7 +226,7 @@ public class SmsNotificationE2ETests
|
||||
await page.GotoAsync($"{PlaywrightFixture.BaseUrl}{ListsUrl}/create");
|
||||
await page.WaitForLoadStateAsync(LoadState.NetworkIdle);
|
||||
|
||||
await Assertions.Expect(page.Locator("h4:has-text('Add Notification List')")).ToBeVisibleAsync();
|
||||
await Assertions.Expect(page.Locator("h1:has-text('Add Notification List')")).ToBeVisibleAsync();
|
||||
|
||||
await page.Locator("input[type=text].form-control").First.FillAsync(name);
|
||||
await page.Locator("select.form-select").SelectOptionAsync(new SelectOptionValue { Value = "Sms" });
|
||||
|
||||
Reference in New Issue
Block a user