import { test, expect } from '@playwright/test'; test.describe('Recipe Management', () => { test('should display recipe list', async ({ page }) => { await page.goto('/recipes'); await expect(page.locator('h1, h2')).toContainText(/Recipes/i); }); test('should create new recipe', async ({ page }) => { await page.goto('/recipes/new'); await page.fill('input[name="title"]', 'Test Recipe'); await page.click('button[type="submit"]'); await expect(page).toHaveURL(/\/recipes/); }); });