test(playwright): scope ConfigAudit pagination button selectors (review fix)
This commit is contained in:
+5
-5
@@ -122,16 +122,16 @@ public class AuditConfigurationTests
|
|||||||
// Page 1 of 2: Previous disabled, Next enabled.
|
// 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('Page 1 of 2')")).ToBeVisibleAsync();
|
||||||
await Assertions.Expect(page.Locator("span:has-text('(55 total)')")).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.btn-outline-secondary.btn-sm: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('Next')")).ToBeEnabledAsync();
|
||||||
|
|
||||||
// Advance to the last page: Previous enabled, Next disabled.
|
// 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 page.WaitForLoadStateAsync(LoadState.NetworkIdle);
|
||||||
|
|
||||||
await Assertions.Expect(page.Locator("span:has-text('Page 2 of 2')")).ToBeVisibleAsync();
|
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.btn-outline-secondary.btn-sm: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('Next')")).ToBeDisabledAsync();
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user