generated from bisco/codex-bootstrap
fix: balance contact section socials
This commit is contained in:
@@ -48,9 +48,10 @@ test("provides usable contact actions", async ({ page }) => {
|
||||
"https://wa.me/393331234567",
|
||||
);
|
||||
await expect(page.getByText("Seguici sui social")).toBeVisible();
|
||||
await expect(page.locator(".social-links a")).toHaveCount(2);
|
||||
await expect(page.locator(".social-links a")).toHaveCount(3);
|
||||
await expect(page.locator(".social-link-instagram")).toHaveCount(1);
|
||||
await expect(page.locator(".social-link-facebook")).toHaveCount(1);
|
||||
await expect(page.locator(".social-link-youtube")).toHaveCount(1);
|
||||
await expect(page.getByRole("link", { name: "Instagram" })).toHaveAttribute(
|
||||
"href",
|
||||
"https://instagram.com/",
|
||||
@@ -59,7 +60,11 @@ test("provides usable contact actions", async ({ page }) => {
|
||||
"href",
|
||||
"https://facebook.com/",
|
||||
);
|
||||
await expect(page.locator(".social-links .social-icon")).toHaveCount(2);
|
||||
await expect(page.getByRole("link", { name: "YouTube" })).toHaveAttribute(
|
||||
"href",
|
||||
"https://youtube.com/",
|
||||
);
|
||||
await expect(page.locator(".social-links .social-icon")).toHaveCount(3);
|
||||
await expect(page.locator(".contact-actions .contact-icon")).toHaveCount(3);
|
||||
await expect(page.locator(".contact-info .contact-icon")).toHaveCount(1);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user