feat(aihr): expose position SOP learning scope

This commit is contained in:
2026-07-14 03:29:59 +08:00
parent d98ff0ff8b
commit f9bce8f0ef
10 changed files with 151 additions and 4 deletions
@@ -148,3 +148,14 @@ test('学习页展示真实错题本并可进入已有再练任务', async () =>
assert.match(source, /pendingAssignmentKey/);
assert.match(practiceService, /\/api\/aihr\/mobile\/practice\/mistakes/);
});
test('学习页显示岗位 SOP 适配状态而不冒充上岗资格', async () => {
const [source, knowledgeService] = await Promise.all([
pageSource('../src/pages/user/learning/index.vue'),
pageSource('../src/services/knowledge.ts')
]);
assert.match(source, /positionSopSummary/);
assert.match(source, /正式上岗资格/);
assert.match(knowledgeService, /\/api\/knowledge\/position-sop/);
});