import { test, expect } from '@playwright/test';

// Simple test to verify the app is running and accessible
test('My Weekly To Do List should be accessible', async ({ page }) => {
  // Navigate to the running application
  await page.goto('http://localhost:3001');

  // Check that the main elements are present
  await expect(page).toHaveTitle(/My Weekly To Do List/);

  // Check for main UI elements
  await expect(page.getByText('My Weekly To Do List')).toBeVisible();
  await expect(page.getByText('Weekly View')).toBeVisible();
});

test('Should be able to access tasks page', async ({ page }) => {
  await page.goto('http://localhost:3001');

  // Try to navigate to tasks page
  const tasksLink = page.getByText('Tasks');
  await expect(tasksLink).toBeVisible();
});