test(playwright): scope Notification detail-modal title selector to the open modal (review fix)
This commit is contained in:
+3
-1
@@ -266,7 +266,9 @@ public class NotificationActionTests
|
|||||||
// not open the modal — the subject cell is the correct target.
|
// not open the modal — the subject cell is the correct target.
|
||||||
await row.Locator("td", new() { HasText = "wave4-detail" }).DblClickAsync();
|
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.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.
|
// Close via the header X.
|
||||||
await page.ClickAsync("button.btn-close[aria-label='Close']");
|
await page.ClickAsync("button.btn-close[aria-label='Close']");
|
||||||
|
|||||||
Reference in New Issue
Block a user