收口个人中心充值商品卡组件

个人中心充值商品整卡按钮改用 PlatformSubpanel as button

充值弹窗测试断言商品卡接入公共交互壳

补充 PlatformUiKit 收口文档和 Hermes 决策记录
This commit is contained in:
2026-06-10 12:36:16 +08:00
parent 1df16377ce
commit d59654f277
4 changed files with 24 additions and 4 deletions

View File

@@ -1446,7 +1446,17 @@ test('profile recharge modal trusts per-product first bonus display after points
const rechargeDialog = await screen.findByText('账户充值');
expect(rechargeDialog).toBeTruthy();
expect(screen.getByRole('button', { name: /60/u })).toBeTruthy();
const rechargeProductCard = screen.getByRole('button', {
name: /60.*60\+60.*/u,
});
expect(rechargeProductCard.className).toContain('platform-subpanel');
expect(rechargeProductCard.className).toContain('platform-interactive-card');
expect(rechargeProductCard.className).toContain('hover:bg-white');
expect(rechargeProductCard.getAttribute('type')).toBe('button');
expect(rechargeProductCard.className).toContain(
'disabled:cursor-not-allowed',
);
expect(screen.getByText('首充双倍')).toBeTruthy();
expect(screen.getByText('60+60泥点')).toBeTruthy();
});