补齐 LLM 子菜单路由,落地模型列表与供应商管理页面交互,同时引入功能与视觉回归用例以便后续页面持续验证。 Co-authored-by: Cursor <cursoragent@cursor.com>
13 lines
469 B
TypeScript
13 lines
469 B
TypeScript
import { expect, test } from '@playwright/test';
|
|
|
|
test('账号密码可登录并进入总览', async ({ page }) => {
|
|
await page.goto('/login');
|
|
|
|
await page.getByPlaceholder('用户名: admin or user').fill('admin');
|
|
await page.getByPlaceholder('密码: 123456').fill('123456');
|
|
await page.getByRole('button', { name: '登 录' }).click();
|
|
|
|
await expect(page).toHaveURL(/\/dashboard$/);
|
|
await expect(page.getByText('近7日对话趋势')).toBeVisible();
|
|
});
|