618f3c36f2
- 在背景测试中更新菜单项标题,移除图标 - 在 StorageCleaner 页面中更新初始化加载状态的中文文案 - 在 QrCode 组件中修正导入路径 - 在 DecodeResultPaper 中使用 Label 组件替换原生 label 元素 - 移除不再使用的 formatFileSize 函数
12 lines
407 B
TypeScript
12 lines
407 B
TypeScript
import { render, screen } from '@testing-library/react';
|
|
import { describe, it, expect } from 'vitest';
|
|
import Index from '../index';
|
|
|
|
describe('JsonTools 页面', () => {
|
|
it('应该渲染模式切换按钮', () => {
|
|
render(<Index />);
|
|
// 基本渲染测试:页面含多个模式切换按钮,应至少渲染一个
|
|
expect(screen.getAllByRole('button').length).toBeGreaterThan(0);
|
|
});
|
|
});
|