fix: render social links conditionally

This commit is contained in:
bisco
2026-06-26 00:04:43 +02:00
parent 36a686a988
commit c29a846918
4 changed files with 49 additions and 1 deletions
+10
View File
@@ -47,6 +47,16 @@ test("provides usable contact actions", async ({ page }) => {
"href",
"https://wa.me/393331234567",
);
await expect(page.locator(".social-links a")).toHaveCount(2);
await expect(page.getByRole("link", { name: "Instagram" })).toHaveAttribute(
"href",
"https://instagram.com/",
);
await expect(page.getByRole("link", { name: "Facebook" })).toHaveAttribute(
"href",
"https://facebook.com/",
);
await expect(page.locator(".social-links .social-icon")).toHaveCount(2);
});
test("supports mobile navigation without horizontal overflow", async ({ page }) => {