feat: 支持充值商品配置和档位首充
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user