From eef94d23988c920719b24090e34917436d98e4b1 Mon Sep 17 00:00:00 2001 From: KYBee Date: Fri, 24 Jul 2026 16:55:18 +0900 Subject: [PATCH 1/7] refactor: migrate shared responsive Flex layouts --- .../global/Footer/index.module.scss | 8 - src/components/global/Footer/index.test.tsx | 42 ++++++ src/components/global/Footer/index.tsx | 10 +- .../global/Navigation/index.module.scss | 5 - .../global/Navigation/index.test.tsx | 141 ++++++++++++++++++ src/components/global/Navigation/index.tsx | 3 + .../molecules/Card/index.module.scss | 5 - src/components/molecules/Card/index.tsx | 5 +- .../molecules/Table/index.module.scss | 6 - src/components/molecules/Table/index.test.tsx | 66 ++++++++ src/components/molecules/Table/index.tsx | 6 +- .../organisms/Faq/index.module.scss | 4 - src/components/organisms/Faq/index.test.tsx | 53 +++++++ src/components/organisms/Faq/index.tsx | 7 +- 14 files changed, 324 insertions(+), 37 deletions(-) create mode 100644 src/components/global/Footer/index.test.tsx create mode 100644 src/components/global/Navigation/index.test.tsx create mode 100644 src/components/molecules/Table/index.test.tsx create mode 100644 src/components/organisms/Faq/index.test.tsx diff --git a/src/components/global/Footer/index.module.scss b/src/components/global/Footer/index.module.scss index a34c698..e9cc03e 100644 --- a/src/components/global/Footer/index.module.scss +++ b/src/components/global/Footer/index.module.scss @@ -6,16 +6,8 @@ .group { width: 100%; height: 113px; - display: flex; - flex-direction: column-reverse; - align-items: center; - justify-content: center; - gap: 16px; @include desktop { height: 100px; - flex-direction: row; - justify-content: space-between; - gap: 0; } } diff --git a/src/components/global/Footer/index.test.tsx b/src/components/global/Footer/index.test.tsx new file mode 100644 index 0000000..0389b80 --- /dev/null +++ b/src/components/global/Footer/index.test.tsx @@ -0,0 +1,42 @@ +import type { ReactNode } from 'react'; + +import { render, screen } from '@testing-library/react'; + +import Footer from './index'; + +vi.mock('@/components/atoms/Layout', () => ({ + default: ({ children }: { children: ReactNode }) => ( +
{children}
+ ), +})); + +vi.mock('@/components/molecules/SocialIconLink', () => ({ + default: ({ type, url }: { type: string; url: string }) => ( + {type} + ), +})); + +describe('Footer', () => { + it('renders the footer copyright and social links', () => { + render(