This commit is contained in:
2026-08-05 09:11:41 +08:00
parent 2313fd238c
commit a6828df5b9
6 changed files with 90 additions and 13 deletions
@@ -34,6 +34,13 @@ test('supports tenant profile updates and authenticated qualification downloads'
assert.match(storeSource, /normalizeQualificationStatus\(item\.status\)/)
})
test('uploads the three required qualification fields through one multipart package request', () => {
assert.match(source, /url: '\/merchant\/v1\/files\/qualifications\/required-package'/)
assert.match(source, /data\.append\('businessLicense', businessLicense\)/)
assert.match(source, /data\.append\('legalPersonId', legalPersonId\)/)
assert.match(source, /params: \{ unifiedSocialCreditCode, replaceBusinessLicense, replaceLegalPersonId \}/)
})
test('uses membershipId and full replacement arrays in authorization writes', () => {
assert.match(source, /data: \{ roleId, permissionIds \}/)
assert.match(source, /data: \{ membershipId, roleIds \}/)