From 13ad5dd1acd4fc90908b7a1da0d410f4c56e3675 Mon Sep 17 00:00:00 2001 From: Benny Joo Date: Fri, 27 Dec 2024 19:33:44 -0500 Subject: [PATCH] revert head seo test --- packages/ui/components/head-seo/head-seo.test.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/ui/components/head-seo/head-seo.test.tsx b/packages/ui/components/head-seo/head-seo.test.tsx index 185a16d5b527bc..54f283729b67df 100644 --- a/packages/ui/components/head-seo/head-seo.test.tsx +++ b/packages/ui/components/head-seo/head-seo.test.tsx @@ -45,6 +45,9 @@ vi.mock("@calcom/lib/OgImages", async () => { constructGenericImage() { return "constructGenericImage"; }, + constructMeetingImage() { + return "constructMeetingImage"; + }, }; }); @@ -146,4 +149,12 @@ describe("Tests for HeadSeo component", () => { expect(mockedNextSeoEl?.getAttribute("image")).toContain("constructAppImage"); }); }); + + test("Should render with meeting props", async () => { + const { container } = render(); + await waitFor(async () => { + const mockedNextSeoEl = container.querySelector("#mocked-next-seo"); + expect(mockedNextSeoEl?.getAttribute("image")).toContain("constructMeetingImage"); + }); + }); });