import { test, expect } from '@playwright/test'; test('homepage loads with intent input', async ({ page }) => { await page.goto('/'); await expect(page.locator('h1')).toContainText('Curio'); await expect(page.locator('[aria-label="Learning intent"]')).toBeVisible(); await expect(page.locator('button[type="submit"]')).toBeDisabled(); }); test('submit button enables when input has text', async ({ page }) => { await page.goto('/'); await page.fill('[aria-label="Learning intent"]', 'JavaScript closures'); await expect(page.locator('button[type="submit"]')).toBeEnabled(); });