fix: balance contact section socials

This commit is contained in:
bisco
2026-06-26 09:17:29 +02:00
parent bf465edb8c
commit 482928a296
4 changed files with 23 additions and 11 deletions
+7 -2
View File
@@ -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);
});