diff --git a/frontend/tests/componentTests/RelatedProjectAndSatellites.spec.tsx b/frontend/tests/componentTests/RelatedProjectAndSatellites.spec.tsx deleted file mode 100644 index c2bdec3..0000000 --- a/frontend/tests/componentTests/RelatedProjectAndSatellites.spec.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import RelatedProjectsAndSatellites from "@/components/RelatedProjectsAndSatellites"; -import { test, expect } from "@playwright/experimental-ct-react"; - -test("should work", async ({ mount }) => { - // Mock project data - const mockProject = { - id: "test", - title: "Learn React", - previewImage: "test", - slug: "test", - isProject: true, - }; - - const component = await mount( - , - ); - - await expect(component).toContainText("Learn React"); -}); diff --git a/frontend/tests/componentTests/fullblogcard.spec.tsx b/frontend/tests/componentTests/fullblogcard.spec.tsx index 303e85e..85e3cd5 100644 --- a/frontend/tests/componentTests/fullblogcard.spec.tsx +++ b/frontend/tests/componentTests/fullblogcard.spec.tsx @@ -1,7 +1,6 @@ import { test, expect } from "@playwright/experimental-ct-react"; import FullBlogCard from "@/components/fullBlogCard"; import { BlogPost } from "@/app/blog/page"; -import { Enum_Article_Tag } from "@/__generated__/graphql"; test("FullBlogCard renders correctly", async ({ mount }) => { const mockArticle: BlogPost = { @@ -20,7 +19,7 @@ test("FullBlogCard renders correctly", async ({ mount }) => { ], coverImage: "mock-cover-image.jpg", datePublished: "2024-04-13", - tag: Enum_Article_Tag.Projects, + tag: "Projects", slug: "mock-article-slug", }; // Mount the FullBlogCard component with mock data