修复(半自动履约): 虎牙绑定仅核验角色名与区服
This commit is contained in:
@@ -50,6 +50,19 @@ test('虎牙客户页固定先填写资料,再登录并绑定角色', () => {
|
||||
assert.ok(source.includes('(isWeibo || profileComplete) &&'))
|
||||
})
|
||||
|
||||
test('资料完整只要求区服和角色名,游戏角色 UID 可选', () => {
|
||||
const profileStart = source.indexOf('const profileComplete = Boolean(')
|
||||
const profileEnd = source.indexOf('\n\n const load =', profileStart)
|
||||
const profileSource = source.slice(profileStart, profileEnd)
|
||||
assert.ok(profileSource.includes('customerServerZone'))
|
||||
assert.ok(profileSource.includes('customerGameRoleName'))
|
||||
assert.ok(!profileSource.includes('customerGameRoleId'))
|
||||
assert.ok(source.includes('请完整填写区服和角色名'))
|
||||
assert.ok(source.includes('游戏角色 UID 为选填资料,不参与绑定核验'))
|
||||
assert.ok(source.includes('游戏角色 UID(选填)'))
|
||||
assert.ok(source.includes('if (profileRoleId.trim() && !/^\\d+$/.test(profileRoleId.trim()))'))
|
||||
})
|
||||
|
||||
test('登录和绑定专用同步阶段暂停整单轮询', () => {
|
||||
assert.ok(source.includes('const dedicatedLoginPoll ='))
|
||||
assert.ok(source.includes('const dedicatedBindingPoll ='))
|
||||
@@ -74,10 +87,9 @@ test('角色名和区服一致才出现确认绑定,不一致时展示原因',
|
||||
assert.ok(source.includes('customer-binding-modal-error'))
|
||||
})
|
||||
|
||||
test('二维码区明确区分虎牙账号 UID 与游戏角色 UID', () => {
|
||||
assert.ok(source.includes('扫码后系统会核对待确认角色的名称与区服'))
|
||||
assert.ok(source.includes('不会用虎牙账号 UID'))
|
||||
assert.ok(source.includes('游戏角色 UID 与稍后登录的虎牙账号 UID 不是同一个编号'))
|
||||
test('二维码区明确只核验角色名与区服,UID 不参与绑定', () => {
|
||||
assert.ok(source.includes('扫码后系统只核对角色名称与区服,UID 不参与绑定判定'))
|
||||
assert.ok(source.includes('游戏角色 UID 为选填留档,不参与绑定判定'))
|
||||
assert.ok(source.includes('本次待确认角色'))
|
||||
assert.ok(source.includes('虎牙账号 UID'))
|
||||
assert.ok(!source.includes('平台已返回加密角色标识'))
|
||||
|
||||
Reference in New Issue
Block a user