fix(cr2-frontend): 代理归属回退、换号继承确认与请求竞态收口

- CR-04:全局代理加 proxy_uid 归属,跨账号不再静默回退/补报
- CR-12:取消静默继承,设置页显式确认;同 OS 作用域、locked 代理排除、无效快照清除、uid+epoch 双校验、登出 capture 超时
- CR-26/27:关键词分页初始值与档位一致;两页面请求序号闸丢弃旧响应

vue-tsc 两前端 rc=0;定向 35 + 8 + 2 例全绿。
This commit is contained in:
2026-10-26 11:33:37 +08:00
parent b5e4c45add
commit b963561043
16 changed files with 1245 additions and 136 deletions
@@ -155,6 +155,22 @@ test('登出先留继承快照再清缓存,且清缓存必须早于移除 uid'
)
})
test('登出清理期间禁用提交,且清理结束才恢复(CR-12)', () => {
assert.match(loginPageSource, /logoutCleanupPending = ref\(false\)/, '缺清理中状态')
assert.match(
loginPageSource,
/:disabled="loggingIn \|\| logoutCleanupPending"/,
'清理期间登录按钮必须禁用',
)
assert.match(
loginPageSource,
/if \(loggingIn\.value \|\| logoutCleanupPending\.value\) return/,
'回车/表单提交也要挡住,不能只靠按钮 disabled',
)
assert.match(loginPageSource, /logoutCleanupPending\.value = true/, '登出时应进入清理中状态')
assert.match(loginPageSource, /logoutCleanupPending\.value = false/, '清理结束(含超时)必须恢复')
})
test('停用/删除文案必须互不冒充:停用句不说删除、删除句不说停用', () => {
const disabledLine = loginPageSource
.split('\n')