import { render, screen } from '@testing-library/react';
import { expect, it } from 'vitest';
import StaffHomePage from '../staff/page';
it('links to the scheduling core without implementing clock actions in the home', () => {
  render(<StaffHomePage />);
  expect(screen.getByRole('heading', { name: 'Your staff workspace' })).toBeInTheDocument();
  expect(screen.getByRole('link', { name: /My schedule/i })).toHaveAttribute('href', '/staff/schedule');
  expect(screen.getByRole('link', { name: /Clock/i })).toHaveAttribute('href', '/staff/clock');
  expect(screen.getByRole('link', { name: /My hours/i })).toHaveAttribute('href', '/staff/hours');
  expect(screen.queryByRole('button', { name: /clock/i })).not.toBeInTheDocument();
});
