test(playwright): scope ConfigAudit pagination button selectors (review fix)

This commit is contained in:
Joseph Doherty
2026-06-06 15:34:09 -04:00
parent 6975988ab4
commit 0b71712ee1
@@ -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
{