删除内容: - 前端: health/(67文件), ai/(2文件), Copilot, MediaPicker, 相关API/Store/Hook - 后端: wechat_handler, wechat_service, wechat_user entity, analytics handler, ai_workflow_seed - 配置: WechatConfig, AppConfig.wechat, AuthState wechat 字段 - 启动: 微信凭据检查块, ensure_ai_workflows() 调用 - 迁移: 新增 m20260613_000170_drop_wechat_users.rs - 脚本: api_test_health_alert.py, api_test_mp.py, mpsync.sh/ps1 - E2E: health-data page, flows/ 目录 保留: erp-core/auth/workflow/message/config/plugin + 基座前端 + 通用组件
25 lines
879 B
TypeScript
25 lines
879 B
TypeScript
import { test, expect } from './auth.fixture';
|
|
|
|
test.describe('插件管理', () => {
|
|
test('插件管理页面加载', async ({ page }) => {
|
|
await page.goto('/#/');
|
|
// 侧边栏显示"扩展管理插件管理"
|
|
await page.locator('text=扩展管理').first().click();
|
|
await page.waitForLoadState('networkidle');
|
|
// 页面不崩溃
|
|
await expect(page.locator('main')).toBeVisible();
|
|
});
|
|
|
|
test('刷新按钮可点击', async ({ page }) => {
|
|
await page.goto('/#/');
|
|
await page.locator('text=扩展管理').first().click();
|
|
await page.waitForLoadState('networkidle');
|
|
const refreshBtn = page.locator('button:has-text("刷新")');
|
|
if (await refreshBtn.isVisible().catch(() => false)) {
|
|
await expect(refreshBtn).toBeEnabled();
|
|
await refreshBtn.click();
|
|
await expect(page.locator('main')).toBeVisible();
|
|
}
|
|
});
|
|
});
|