feat: 实现大模型模型列表与供应商管理,并接入 Playwright 测试

补齐 LLM 子菜单路由,落地模型列表与供应商管理页面交互,同时引入功能与视觉回归用例以便后续页面持续验证。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-26 02:01:40 +08:00
parent a09dcef3f1
commit c4872891f8
23 changed files with 1117 additions and 7 deletions

19
e2e/fixtures/auth.ts Normal file
View File

@@ -0,0 +1,19 @@
import { expect, test as base } from '@playwright/test';
export const test = base.extend({
page: async ({ page }, applyFixture) => {
await page.addInitScript(() => {
localStorage.setItem(
'user-store',
JSON.stringify({
state: { token: 'e2e-token' },
version: 0,
}),
);
});
await applyFixture(page);
},
});
export { expect };