import { render, screen } from '@testing-library/react';
import { describe, it, expect, vi } from 'vitest';

vi.mock('@/Layouts/Web/WebLayout', () => ({ default: ({ children }) => <>{children}</> }));

import TaxCompliance from '@/Pages/Web/Features/TaxCompliance';

describe('Web/Features/TaxCompliance page', () => {
    it('renders without crashing', () => {
        render(<TaxCompliance />);
    });

    it('sets the correct page title', () => {
        render(<TaxCompliance />);
        expect(document.title).toBe('Tax Compliance — Upepo POS');
    });

    it('displays stay compliant heading', () => {
        render(<TaxCompliance />);
        expect(screen.getByText(/stay compliant/i)).toBeInTheDocument();
    });
});
