收口个人中心昵称编辑图标按钮
RpgEntryHomeView 的昵称编辑入口改用 PlatformIconButton 并保留局部紧凑样式 补充昵称编辑入口复用共享按钮 class 的测试断言 同步 PlatformUiKit 收口计划与 .hermes 决策记录
This commit is contained in:
@@ -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(
|
||||
'新昵称',
|
||||
|
||||
Reference in New Issue
Block a user