import { render, screen } from '@testing-library/react';
import { describe, it, expect, vi } from 'vitest';

vi.mock('@/Layouts/Web/WebLayout', () => ({ default: ({ children }) => <>{children}</> }));

import Press from '@/Pages/Web/Press';

describe('Web/Press page', () => {
    it('renders without crashing', () => {
        render(<Press />);
    });

    it('sets the correct page title', () => {
        render(<Press />);
        expect(document.title).toBe('Press & Media — Upepo POS');
    });

    it('displays In the press section', () => {
        render(<Press />);
        expect(screen.getByText(/in the press/i)).toBeInTheDocument();
    });
});
