test(playwright): scope Notification detail-modal title selector to the open modal (review fix)

This commit is contained in:
Joseph Doherty
2026-06-07 04:15:25 -04:00
parent 42f38996a9
commit 5774b30d0d
@@ -266,7 +266,9 @@ public class NotificationActionTests
// not open the modal — the subject cell is the correct target.
await row.Locator("td", new() { HasText = "wave4-detail" }).DblClickAsync();
await Assertions.Expect(page.Locator(".modal.show.d-block")).ToBeVisibleAsync();
await Assertions.Expect(page.Locator(".modal-title")).ToContainTextAsync("Notification Detail");
// Scope the title to the open modal — the page also renders Retry/Discard
// confirm dialogs that carry their own .modal-title.
await Assertions.Expect(page.Locator(".modal.show.d-block .modal-title")).ToContainTextAsync("Notification Detail");
// Close via the header X.
await page.ClickAsync("button.btn-close[aria-label='Close']");