test: Add assertion for dynamic grid column class

This commit is contained in:
Keith Solomon
2026-07-25 00:16:26 -05:00
parent b0bad0d273
commit 9c4553f3d0
+3
View File
@@ -11,6 +11,9 @@ test.describe("Services List block on /services/mapping/", () => {
await expect(blocks.nth(0).locator(".services-list__card")).toHaveCount(2);
await expect(blocks.nth(1).locator(".services-list__card")).toHaveCount(4);
await expect(blocks.nth(0)).toHaveClass(/lg:grid-cols-2/);
await expect(blocks.nth(1)).toHaveClass(/lg:grid-cols-4/);
const firstCard = blocks.nth(0).locator(".services-list__card").first();
await expect(firstCard.locator(".services-list__media img")).toBeVisible();
await expect(firstCard.locator(".services-list__heading")).toBeVisible();