收口个人中心扫码支付面板

迁移 Native 支付二维码确认面板到 PlatformSubpanel

保留二维码生成展示和确认支付流程

补充扫码支付面板公共子面板断言并更新文档和 Hermes
This commit is contained in:
2026-06-10 12:28:23 +08:00
parent 2a9514a975
commit 1df16377ce
4 changed files with 19 additions and 3 deletions

View File

@@ -1332,7 +1332,12 @@ test('profile recharge modal shows native qr code on desktop web by default', as
'wechat_native',
);
});
expect(await screen.findByText('微信扫码支付')).toBeTruthy();
const nativePaymentTitle = await screen.findByText('微信扫码支付');
const nativePaymentPanel = nativePaymentTitle.closest(
'.platform-subpanel',
) as HTMLElement;
expect(nativePaymentPanel.className).toContain('rounded-[1rem]');
expect(nativePaymentPanel.className).toContain('p-4');
await waitFor(() => {
expect(screen.getByAltText('微信 Native 支付二维码')).toBeTruthy();
});