feat(aihr): expose position SOP learning scope
This commit is contained in:
@@ -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/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user