From 0b71712ee1179a3b0c114cd8e8430aeffbf27888 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Sat, 6 Jun 2026 15:34:09 -0400 Subject: [PATCH] test(playwright): scope ConfigAudit pagination button selectors (review fix) --- .../Audit/AuditConfigurationTests.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/ZB.MOM.WW.ScadaBridge.CentralUI.PlaywrightTests/Audit/AuditConfigurationTests.cs b/tests/ZB.MOM.WW.ScadaBridge.CentralUI.PlaywrightTests/Audit/AuditConfigurationTests.cs index d8530286..8c1f5fb6 100644 --- a/tests/ZB.MOM.WW.ScadaBridge.CentralUI.PlaywrightTests/Audit/AuditConfigurationTests.cs +++ b/tests/ZB.MOM.WW.ScadaBridge.CentralUI.PlaywrightTests/Audit/AuditConfigurationTests.cs @@ -122,16 +122,16 @@ public class AuditConfigurationTests // Page 1 of 2: Previous disabled, Next enabled. await Assertions.Expect(page.Locator("span:has-text('Page 1 of 2')")).ToBeVisibleAsync(); await Assertions.Expect(page.Locator("span:has-text('(55 total)')")).ToBeVisibleAsync(); - await Assertions.Expect(page.Locator("button:has-text('Previous')")).ToBeDisabledAsync(); - await Assertions.Expect(page.Locator("button:has-text('Next')")).ToBeEnabledAsync(); + await Assertions.Expect(page.Locator("button.btn-outline-secondary.btn-sm:has-text('Previous')")).ToBeDisabledAsync(); + await Assertions.Expect(page.Locator("button.btn-outline-secondary.btn-sm:has-text('Next')")).ToBeEnabledAsync(); // Advance to the last page: Previous enabled, Next disabled. - await page.Locator("button:has-text('Next')").ClickAsync(); + await page.Locator("button.btn-outline-secondary.btn-sm:has-text('Next')").ClickAsync(); await page.WaitForLoadStateAsync(LoadState.NetworkIdle); await Assertions.Expect(page.Locator("span:has-text('Page 2 of 2')")).ToBeVisibleAsync(); - await Assertions.Expect(page.Locator("button:has-text('Previous')")).ToBeEnabledAsync(); - await Assertions.Expect(page.Locator("button:has-text('Next')")).ToBeDisabledAsync(); + await Assertions.Expect(page.Locator("button.btn-outline-secondary.btn-sm:has-text('Previous')")).ToBeEnabledAsync(); + await Assertions.Expect(page.Locator("button.btn-outline-secondary.btn-sm:has-text('Next')")).ToBeDisabledAsync(); } finally {