收口个人中心昵称编辑图标按钮

RpgEntryHomeView 的昵称编辑入口改用 PlatformIconButton 并保留局部紧凑样式
补充昵称编辑入口复用共享按钮 class 的测试断言
同步 PlatformUiKit 收口计划与 .hermes 决策记录
This commit is contained in:
2026-06-10 17:59:40 +08:00
parent 2af0916c04
commit 1841eac0e1
4 changed files with 11 additions and 7 deletions

View File

@@ -3140,7 +3140,11 @@ test('profile nickname modal uses platform text field and submits with Enter', a
});
renderProfileView();
await user.click(screen.getByLabelText('修改昵称'));
const nicknameButton = screen.getByRole('button', { name: '修改昵称' });
expect(nicknameButton.className).toContain('platform-icon-button');
expect(nicknameButton.className).toContain('platform-profile-edit-button');
await user.click(nicknameButton);
const nicknameInput = (await screen.findByLabelText(
'新昵称',