feat: 支持充值商品配置和档位首充

This commit is contained in:
2026-05-15 06:11:57 +08:00
parent 9c33cc565c
commit c7fe793a9e
36 changed files with 2096 additions and 72 deletions

View File

@@ -1039,7 +1039,7 @@ test('profile recharge modal buys points through mock channel outside mini progr
expect(onRechargeSuccess).toHaveBeenCalledTimes(1);
});
test('profile recharge modal hides first bonus display after points recharge', async () => {
test('profile recharge modal trusts per-product first bonus display after points recharge', async () => {
const user = userEvent.setup();
mockGetRpgProfileRechargeCenter.mockResolvedValueOnce({
walletBalance: 60,
@@ -1076,8 +1076,8 @@ test('profile recharge modal hides first bonus display after points recharge', a
const rechargeDialog = await screen.findByText('账户充值');
expect(rechargeDialog).toBeTruthy();
expect(screen.getByRole('button', { name: /60/u })).toBeTruthy();
expect(screen.queryByText('首充双倍')).toBeNull();
expect(screen.queryByText('60+60泥点')).toBeNull();
expect(screen.getByText('首充双倍')).toBeTruthy();
expect(screen.getByText('60+60泥点')).toBeTruthy();
});
test('profile recharge modal posts requestPayment params in mini program web-view', async () => {