fix(aihr): harden broadcast and mobile assistant flows

This commit is contained in:
2026-07-23 03:35:36 +08:00
parent 62c8b41672
commit 4b31848e3d
30 changed files with 1127 additions and 208 deletions
+2 -2
View File
@@ -62,8 +62,8 @@ test('工作助手页面展示任务过期后不会消费待执行查询或数
const page = await read('../src/pages/user/sop/index.vue');
assert.match(page, /const isCurrentShow = \(\) => generation === showGeneration && accountKey === currentAccountKey\(\)/);
assert.match(page, /if \(!isCurrentShow\(\)\) return;\s*const pending = uni\.getStorageSync\(pendingSopQueryKey\)/);
assert.match(page, /if \(!isCurrentShow\(\)\) return;\s*const pendingTool = uni\.getStorageSync\(pendingToolKey\)/);
assert.match(page, /const pending = uni\.getStorageSync\(pendingSopQueryKey\);\s*if \(!isCurrentShow\(\)\) return;/);
assert.match(page, /const pendingTool = uni\.getStorageSync\(pendingToolKey\);[\s\S]*?if \(!isCurrentShow\(\)\) return;/);
assert.match(page, /if \(!isCurrentShow\(\)\) return;\s*uni\.removeStorageSync\(pendingToolKey\)/);
assert.match(page, /if \(!isCurrentShow\(\)\) return;\s*uni\.removeStorageSync\(pendingSopQueryKey\)/);
assert.match(page, /const requestShowGeneration = showGeneration/);