diff --git a/tests/ZB.MOM.WW.ScadaBridge.CentralUI.PlaywrightTests/Cluster/CliRunner.Helpers.cs b/tests/ZB.MOM.WW.ScadaBridge.CentralUI.PlaywrightTests/Cluster/CliRunner.Helpers.cs index bbe1892b..fa00fd2f 100644 --- a/tests/ZB.MOM.WW.ScadaBridge.CentralUI.PlaywrightTests/Cluster/CliRunner.Helpers.cs +++ b/tests/ZB.MOM.WW.ScadaBridge.CentralUI.PlaywrightTests/Cluster/CliRunner.Helpers.cs @@ -571,6 +571,14 @@ public static partial class CliRunner /// require changing 's signature or adding an overload. /// The inline try/catch is kept here deliberately — same pattern as /// . + /// + /// + /// Maintenance note: this is a three-token CLI group (security role-mapping) so + /// it cannot use the two-token . If the inline teardown + /// idiom changes (e.g. a new overload of is added), + /// update all three-token deletes together: + /// , , and this method. + /// /// public static async Task DeleteRoleMappingAsync(int id) { diff --git a/tests/ZB.MOM.WW.ScadaBridge.CentralUI.PlaywrightTests/Notifications/NotificationActionTests.cs b/tests/ZB.MOM.WW.ScadaBridge.CentralUI.PlaywrightTests/Notifications/NotificationActionTests.cs index 8d548f86..66fcb312 100644 --- a/tests/ZB.MOM.WW.ScadaBridge.CentralUI.PlaywrightTests/Notifications/NotificationActionTests.cs +++ b/tests/ZB.MOM.WW.ScadaBridge.CentralUI.PlaywrightTests/Notifications/NotificationActionTests.cs @@ -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 {