feat(aihr): allow employees to complete onboarding tasks

This commit is contained in:
2026-07-15 02:49:40 +08:00
parent 2f21895597
commit 82d93a1af1
11 changed files with 112 additions and 5 deletions
@@ -197,6 +197,17 @@ test('学习页展示真实错题本并可进入已有再练任务', async () =>
assert.match(practiceService, /\/api\/aihr\/mobile\/practice\/mistakes/);
});
test('学习页允许员工确认本人正式岗前任务完成', async () => {
const [source, practiceService] = await Promise.all([
pageSource('../src/pages/user/learning/index.vue'),
pageSource('../src/services/practice.ts')
]);
assert.match(source, /completeOnboarding/);
assert.match(source, /确认完成/);
assert.match(practiceService, /\/api\/aihr\/mobile\/onboard\/tasks\/\$\{id\}\/complete/);
});
test('学习页显示岗位 SOP 适配状态而不冒充上岗资格', async () => {
const [source, knowledgeService] = await Promise.all([
pageSource('../src/pages/user/learning/index.vue'),