test(playwright): Notification hygiene — scoped pager locator, next-enabled re-assert, role-mapping-delete doc note

This commit is contained in:
Joseph Doherty
2026-06-07 10:22:54 -04:00
parent d3adf8c2e4
commit 5bc8dbad31
2 changed files with 10 additions and 1 deletions
@@ -415,7 +415,7 @@ public class NotificationActionTests
// placeholder that shares that class renders only while `_notifications == null`.
var prev = page.Locator("button.btn-outline-secondary.btn-sm:has-text('Previous')");
var next = page.Locator("button.btn-outline-secondary.btn-sm:has-text('Next')");
var indicator = page.Locator("span.text-muted.small");
var indicator = page.Locator(".d-flex.justify-content-between.align-items-center span.text-muted.small");
// ── Page 1 ── (count first — it waits out the fetch — then indicator + buttons).
await Assertions.Expect(page.Locator("tbody tr")).ToHaveCountAsync(50, new() { Timeout = 15_000 });
@@ -435,6 +435,7 @@ public class NotificationActionTests
await Assertions.Expect(page.Locator("tbody tr")).ToHaveCountAsync(50, new() { Timeout = 15_000 });
await Assertions.Expect(indicator).ToContainTextAsync("Page 1");
await Assertions.Expect(prev).ToBeDisabledAsync();
await Assertions.Expect(next).ToBeEnabledAsync();
}
finally
{