收口反馈页输入字段

将反馈页问题描述迁移到 PlatformTextField

将反馈页联系电话迁移到 PlatformTextField

将反馈页字段标题迁移到 PlatformFieldLabel

补充反馈页公共输入字段断言

更新 PlatformUiKit 文档和 Hermes 决策记录
This commit is contained in:
2026-06-10 14:20:36 +08:00
parent 876fd37ce4
commit e019ece907
4 changed files with 47 additions and 12 deletions

View File

@@ -25,11 +25,25 @@ test('PlatformFeedbackView renders reference feedback fields', () => {
expect(screen.getByText('帮助与反馈')).toBeTruthy();
expect(screen.getByText('反馈问题')).toBeTruthy();
expect(screen.getByLabelText('问题描述')).toBeTruthy();
const descriptionField = screen.getByLabelText('问题描述');
expect(descriptionField).toBeTruthy();
expect(descriptionField.tagName).toBe('TEXTAREA');
expect(descriptionField.className).toContain('platform-text-field');
expect(descriptionField.className).toContain('!bg-transparent');
expect(screen.getByText('问题描述').className).toContain(
'text-[var(--platform-text-strong)]',
);
expect(screen.getByText('0/200')).toBeTruthy();
expect(screen.getByText('上传凭证(提供问题截图)')).toBeTruthy();
expect(screen.getByText('上传凭证')).toBeTruthy();
expect(screen.getByLabelText('联系电话')).toBeTruthy();
const contactPhoneField = screen.getByLabelText('联系电话');
expect(contactPhoneField).toBeTruthy();
expect(contactPhoneField.tagName).toBe('INPUT');
expect(contactPhoneField.className).toContain('platform-text-field');
expect(contactPhoneField.className).toContain('!bg-transparent');
expect(screen.getByText('联系电话').className).toContain(
'text-[var(--platform-text-strong)]',
);
expect(screen.getByRole('button', { name: '提交' })).toBeTruthy();
const feedbackHistoryButton = screen.getByRole('button', {
name: '查看反馈与投诉记录',