/**
 * @vitest-environment happy-dom
 */
import { afterEach, describe, expect, it } from 'vitest';
import { cleanup, render, screen } from '@testing-library/react';
import { MemoryRouter } from 'react-router-dom';
import GuidePage from './GuidePage';
import { routerFuture } from '../routerFuture';

describe('GuidePage', () => {
  afterEach(() => cleanup());

  it('renders field guide hero and pipeline section', () => {
    render(
      <MemoryRouter future={routerFuture}>
        <GuidePage />
      </MemoryRouter>
    );
    expect(screen.getByText('OPERATIONS MANUAL')).toBeTruthy();
    expect(screen.getByRole('heading', { name: /Field Guide/i })).toBeTruthy();
    expect(screen.getByRole('heading', { name: /Live pipeline/i })).toBeTruthy();
    expect(screen.getByRole('heading', { name: /Forge vs Calibrate/i })).toBeTruthy();
  });
});
