feat: add allowed Linear API operations to MCP config

This commit is contained in:
Do Siki
2025-09-05 03:10:17 +02:00
parent 7e7d3fb1cc
commit b6365543ef
36 changed files with 14648 additions and 1 deletions
+73
View File
@@ -0,0 +1,73 @@
import { render, screen } from '@testing-library/react'
import '@testing-library/jest-dom'
import Footer from './Footer'
describe('Footer', () => {
it('should render company information', () => {
render(<Footer />)
expect(screen.getByText('mozdIT Bt.')).toBeInTheDocument()
expect(screen.getByText('Megbízható web- és email szolgáltatás személyre szabott támogatással. Stabil tárhely, üzembiztos levelezés és DNS adminisztráció gyors reakcióval.')).toBeInTheDocument()
})
it('should render email and company details', () => {
render(<Footer />)
expect(screen.getByText('Email: info@mozdit.hu')).toBeInTheDocument()
expect(screen.getByText('Cég: mozdIT Bt.')).toBeInTheDocument()
expect(screen.getByText('Székhely: Budapest, Magyarország')).toBeInTheDocument()
})
it('should render navigation links', () => {
render(<Footer />)
expect(screen.getByText('Kezdőlap')).toBeInTheDocument()
expect(screen.getByText('Rólunk')).toBeInTheDocument()
expect(screen.getAllByText('Szolgáltatások')).toHaveLength(2) // Both in navigation and services section
expect(screen.getByText('Kapcsolat')).toBeInTheDocument()
})
it('should render service sections', () => {
render(<Footer />)
expect(screen.getByText('Web Hosting')).toBeInTheDocument()
expect(screen.getByText('Email Szolgáltatás')).toBeInTheDocument()
expect(screen.getByText('DNS Adminisztráció')).toBeInTheDocument()
expect(screen.getByText('Műszaki támogatás')).toBeInTheDocument()
})
it('should render copyright notice with dynamic year', () => {
render(<Footer />)
const currentYear = new Date().getFullYear()
expect(screen.getByText(`© ${currentYear} mozdIT Bt. Minden jog fenntartva.`)).toBeInTheDocument()
})
it('should render legal links', () => {
render(<Footer />)
expect(screen.getAllByText('Adatvédelmi tájékoztató')).toHaveLength(2) // Appears in both sections
expect(screen.getAllByText('Használati feltételek')).toHaveLength(2) // Appears in both sections
})
it('should render with proper grid layout', () => {
const { container } = render(<Footer />)
const gridContainer = container.querySelector('.grid.grid-cols-1.md\\:grid-cols-4')
expect(gridContainer).toBeInTheDocument()
// Check for responsive grid classes
expect(gridContainer).toHaveClass('grid-cols-1', 'md:grid-cols-4')
})
it('should render with proper semantic structure', () => {
const { container } = render(<Footer />)
// Should have a footer element
const footer = container.firstChild as HTMLElement
expect(footer?.tagName).toBe('FOOTER')
// Should have proper background and padding
expect(footer).toHaveClass('bg-gray-50', 'border-t')
})
})