import { render, screen } from '@testing-library/react';
import Hero from '@/app/components/Hero';
import '@testing-library/jest-dom';

describe('Hero', () => {
  it('renders the hero section', () => {
    render(<Hero />);
    expect(screen.getByText('Hi, I’m Dennis')).toBeInTheDocument();
    expect(screen.getByText('Student & Software Engineer')).toBeInTheDocument();
    expect(screen.getByText('Based in Osnabrück, Germany')).toBeInTheDocument();
    expect(screen.getByText('Passionate about technology, coding, and solving real-world problems. I enjoy building innovative solutions and continuously expanding my knowledge.')).toBeInTheDocument();
    expect(screen.getByText('Currently working on exciting projects that merge creativity with functionality. Always eager to learn and collaborate!')).toBeInTheDocument();
    expect(screen.getByAltText('Image of Dennis')).toBeInTheDocument();
  });
});