import { describe, it, expect } from 'vitest';
import { render, screen } from '@testing-library/react';
import PromptsPage from '../app/prompts/page';

describe('Prompts Page', () => {
  it('should render prompts page', () => {
    render(<PromptsPage />);
    const heading = screen.getByText(/提示词库/i);
    expect(heading).toBeInTheDocument();
  });

  it('should have correct title', () => {
    render(<PromptsPage />);
    const title = screen.getByRole('heading', { level: 1 });
    expect(title).toBeInTheDocument();
  });
});
