This commit is contained in:
2026-06-05 23:41:24 +08:00
parent 27b30f974b
commit 7140ac72b5
9 changed files with 69 additions and 10 deletions

View File

@@ -22,6 +22,7 @@ const baseUser: AuthUser = {
loginMethod: 'phone',
bindingStatus: 'active',
wechatBound: true,
wechatDisplayName: '微信旅人甲',
wechatAccount: 'wx-openid-bind-001',
};
@@ -151,7 +152,8 @@ test('account panel uses compact binding cards and keeps logout actions at the b
expect(within(accountDialog).getByText('13800138000')).toBeTruthy();
expect(within(accountDialog).queryByText('138****8000')).toBeNull();
expect(within(accountDialog).getByText('绑定微信')).toBeTruthy();
expect(within(accountDialog).getByText('wx-openid-bind-001')).toBeTruthy();
expect(within(accountDialog).getByText('微信旅人甲')).toBeTruthy();
expect(within(accountDialog).queryByText('wx-openid-bind-001')).toBeNull();
const compactCards = accountDialog.querySelectorAll(
'[data-account-binding-card]',