// Cyrene E2E test — login, send message, verify response // Usage: npx playwright test tests/e2e/chat.spec.ts import { test, expect } from '@playwright/test' test('login and send chat message', async ({ page }) => { await page.goto('http://localhost:5173') await page.fill('input[placeholder="用户名"]', 'admin') await page.fill('input[placeholder="密码"]', 'admin12345') await page.click('button:has-text("登录")') await expect(page).toHaveURL(/\/chat/) await expect(page.locator('text=Cyrene')).toBeVisible() })