优化
This commit is contained in:
@@ -36,6 +36,10 @@ test('supports tenant profile updates and authenticated qualification downloads'
|
||||
assert.doesNotMatch(source, /data\.append\('qualificationType'/)
|
||||
assert.match(source, /'SUPERSEDED'/)
|
||||
assert.match(storeSource, /normalizeQualificationStatus\(item\.status\)/)
|
||||
assert.match(source, /validTo: string \| null/)
|
||||
assert.match(storeSource, /expiresAt: item\.validTo \|\| '长期有效'/)
|
||||
assert.match(source, /enterpriseType: string \| null/)
|
||||
assert.match(storeSource, /enterpriseType: profile\.enterpriseType \?\? ''/)
|
||||
})
|
||||
|
||||
test('uploads the three required qualification fields through one multipart package request', () => {
|
||||
@@ -65,6 +69,13 @@ test('starts empty and only loads server role and member records', () => {
|
||||
assert.match(storeSource, /await updateMerchantMember/)
|
||||
assert.match(storeSource, /await changeMerchantMemberStatus/)
|
||||
assert.match(storeSource, /await resetMerchantMemberPassword/)
|
||||
assert.match(source, /username: string/)
|
||||
assert.match(source, /lastLoginAt: string \| null/)
|
||||
assert.match(source, /memberCount: number/)
|
||||
assert.match(storeSource, /account: member\.username/)
|
||||
assert.match(storeSource, /lastLoginAt: formatLastLoginAt\(member\.lastLoginAt\)/)
|
||||
assert.match(storeSource, /roles\.value\.find\(\(role\) => role\.id === roleId\)\?\.memberCount \?\? 0/)
|
||||
assert.doesNotMatch(storeSource, /lastLoginAt: '服务端未提供'/)
|
||||
})
|
||||
|
||||
test('shares the merchant permission map and preserves resources not rendered by the role editor', () => {
|
||||
|
||||
Reference in New Issue
Block a user