refactor: 迁移 UI 组件库从 Ant Design 至 TDesign
- 替换 antd 为 tdesign-react 作为主要 UI 组件库 - 引入 Recharts 替代 @ant-design/charts 实现图表功能 - 移除主题系统相关代码(ThemeContext、themes 目录) - 更新所有组件以适配 TDesign 组件 API - 更新测试用例以匹配新的组件实现 - 新增 TDesign 和 Recharts 集成规范文档
This commit is contained in:
@@ -24,13 +24,13 @@ test.describe('统计摘要卡片', () => {
|
||||
test('统计卡片应显示数值', async ({ page }) => {
|
||||
await page.waitForTimeout(1000);
|
||||
|
||||
const cards = page.locator('.ant-card');
|
||||
const cards = page.locator('.t-card');
|
||||
const count = await cards.count();
|
||||
expect(count).toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
test('应显示筛选栏', async ({ page }) => {
|
||||
await expect(page.getByText('所有供应商')).toBeVisible();
|
||||
await expect(page.locator('.t-select').first()).toBeVisible();
|
||||
await expect(page.getByPlaceholder('模型名称')).toBeVisible();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user