generated from bisco/codex-bootstrap
fix: render social links conditionally
This commit is contained in:
@@ -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 }) => {
|
||||
|
||||
Reference in New Issue
Block a user