test(playwright): update pager/markup selectors to M10 component hooks (INT)
This commit is contained in:
+6
-5
@@ -91,7 +91,7 @@ public class AuditConfigurationTests
|
||||
// is exactly 3 (filtering by the unique marker makes this deterministic
|
||||
// regardless of the other rows the live cluster holds).
|
||||
await Assertions.Expect(page.Locator($"tr:has-text('{marker}-0')")).ToBeVisibleAsync();
|
||||
await Assertions.Expect(page.Locator("span:has-text('(3 total)')")).ToBeVisibleAsync();
|
||||
await Assertions.Expect(page.Locator("[data-test='pager-summary']")).ToContainTextAsync("3 total");
|
||||
}
|
||||
finally
|
||||
{
|
||||
@@ -119,9 +119,10 @@ public class AuditConfigurationTests
|
||||
await page.Locator("button.btn.btn-primary.btn-sm:has-text('Search')").ClickAsync();
|
||||
await page.WaitForLoadStateAsync(LoadState.NetworkIdle);
|
||||
|
||||
// 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();
|
||||
// Page 1 of 2: Previous disabled, Next enabled. (M10 OffsetPager summary:
|
||||
// "Page {N} of {Y} · {Total} total".)
|
||||
await Assertions.Expect(page.Locator("[data-test='pager-summary']")).ToContainTextAsync("Page 1 of 2");
|
||||
await Assertions.Expect(page.Locator("[data-test='pager-summary']")).ToContainTextAsync("55 total");
|
||||
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();
|
||||
|
||||
@@ -129,7 +130,7 @@ public class AuditConfigurationTests
|
||||
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("[data-test='pager-summary']")).ToContainTextAsync("Page 2 of 2");
|
||||
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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user