From 02d675587440f54d92b77ccc61e471a12c8e35f0 Mon Sep 17 00:00:00 2001 From: Do Siki Date: Wed, 19 Aug 2026 17:37:36 +0200 Subject: [PATCH] test(footer): assert address from common.json instead of hardcoded city The footer address is CMS-editable now; the test must follow the single source instead of a fixed city. --- proto/src/components/Footer.test.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/proto/src/components/Footer.test.tsx b/proto/src/components/Footer.test.tsx index dae4655..278d265 100755 --- a/proto/src/components/Footer.test.tsx +++ b/proto/src/components/Footer.test.tsx @@ -1,6 +1,7 @@ import { render, screen } from '@testing-library/react' import '@testing-library/jest-dom' import Footer from './Footer' +import { common } from '@/content' describe('Footer', () => { it('should render company information', () => { @@ -15,7 +16,8 @@ describe('Footer', () => { expect(screen.getByText('info@mozdit.hu')).toBeInTheDocument() expect(screen.getAllByText('mozdIT Bt.').length).toBeGreaterThan(0) - expect(screen.getByText('Budapest, Magyarország')).toBeInTheDocument() + // Address is CMS-editable (common.json footer.address) — assert the source value + expect(screen.getByText(common.footer.address)).toBeInTheDocument() }) it('should render navigation links', () => {