test(footer): assert address from common.json instead of hardcoded city
CI Pipeline with Test Management / 🧪 Run Tests & Generate Reports (push) Waiting to run
CI Pipeline with Test Management / 🐳 Docker Integration Tests (push) Blocked by required conditions
CI Pipeline with Test Management / 🏗️ Build Docker Image (push) Blocked by required conditions
CI Pipeline with Test Management / 📊 Generate Test Summary (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / 🧪 Run Tests & Generate Reports (push) Waiting to run
Test Reporting & Gherkin Analysis / 📊 Analyze Test Coverage (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / 🔄 Sync with Linear (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / ⚡ Performance Monitoring (push) Blocked by required conditions
CI Pipeline with Test Management / 🧪 Run Tests & Generate Reports (push) Waiting to run
CI Pipeline with Test Management / 🐳 Docker Integration Tests (push) Blocked by required conditions
CI Pipeline with Test Management / 🏗️ Build Docker Image (push) Blocked by required conditions
CI Pipeline with Test Management / 📊 Generate Test Summary (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / 🧪 Run Tests & Generate Reports (push) Waiting to run
Test Reporting & Gherkin Analysis / 📊 Analyze Test Coverage (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / 🔄 Sync with Linear (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / ⚡ Performance Monitoring (push) Blocked by required conditions
The footer address is CMS-editable now; the test must follow the single source instead of a fixed city.
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import { render, screen } from '@testing-library/react'
|
import { render, screen } from '@testing-library/react'
|
||||||
import '@testing-library/jest-dom'
|
import '@testing-library/jest-dom'
|
||||||
import Footer from './Footer'
|
import Footer from './Footer'
|
||||||
|
import { common } from '@/content'
|
||||||
|
|
||||||
describe('Footer', () => {
|
describe('Footer', () => {
|
||||||
it('should render company information', () => {
|
it('should render company information', () => {
|
||||||
@@ -15,7 +16,8 @@ describe('Footer', () => {
|
|||||||
|
|
||||||
expect(screen.getByText('info@mozdit.hu')).toBeInTheDocument()
|
expect(screen.getByText('info@mozdit.hu')).toBeInTheDocument()
|
||||||
expect(screen.getAllByText('mozdIT Bt.').length).toBeGreaterThan(0)
|
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', () => {
|
it('should render navigation links', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user