refactor: 更新测试用例和组件结构

- 在背景测试中更新菜单项标题,移除图标
- 在 StorageCleaner 页面中更新初始化加载状态的中文文案
- 在 QrCode 组件中修正导入路径
- 在 DecodeResultPaper 中使用 Label 组件替换原生 label 元素
- 移除不再使用的 formatFileSize 函数
This commit is contained in:
雨霖铃
2026-06-14 09:40:05 +08:00
parent 24c83de56d
commit 618f3c36f2
11 changed files with 36 additions and 29 deletions
+3 -3
View File
@@ -3,9 +3,9 @@ import { describe, it, expect } from 'vitest';
import Index from '../index';
describe('JsonTools 页面', () => {
it('应该渲染页面标题', () => {
it('应该渲染模式切换按钮', () => {
render(<Index />);
// 基本渲染测试
expect(screen.getByRole('button')).toBeInTheDocument();
// 基本渲染测试:页面含多个模式切换按钮,应至少渲染一个
expect(screen.getAllByRole('button').length).toBeGreaterThan(0);
});
});