feat(aihr): allow employees to complete onboarding tasks
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user