mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-08-21 21:47:00 +08:00
feat: 统一界面视觉规范并优化导出交互
This commit is contained in:
@@ -16,6 +16,32 @@ const baseProps = {
|
||||
}
|
||||
|
||||
describe('export progress panel', () => {
|
||||
it('uses the semantic accent surface for outgoing preview messages', () => {
|
||||
render(
|
||||
<ExportPreviewPanel
|
||||
{...baseProps}
|
||||
status="idle"
|
||||
previewItems={[
|
||||
{
|
||||
id: 'outgoing-preview',
|
||||
from: 'self',
|
||||
type: '文字',
|
||||
datetime: '',
|
||||
content: '已发送的消息',
|
||||
isSender: true
|
||||
}
|
||||
]}
|
||||
progress={null}
|
||||
includeVoiceTranscripts={false}
|
||||
zip={false}
|
||||
/>
|
||||
)
|
||||
|
||||
expect(screen.getByText('已发送的消息').closest('.export-preview-bubble')).toHaveClass(
|
||||
'bg-accent'
|
||||
)
|
||||
})
|
||||
|
||||
it('shows an indeterminate bar while the first message scan is still at zero', () => {
|
||||
render(
|
||||
<ExportPreviewPanel
|
||||
|
||||
Reference in New Issue
Block a user