✅ test: Add assertion for dynamic grid column class
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user