feat(aihr): add employee mistake book audit
This commit is contained in:
@@ -135,3 +135,16 @@ test('训练页保留任务卡、对话区、回复区和结果区', async () =>
|
||||
assert.match(source, /reply-card/);
|
||||
assert.match(source, /result-card/);
|
||||
});
|
||||
|
||||
test('学习页展示真实错题本并可进入已有再练任务', async () => {
|
||||
const [source, practiceService] = await Promise.all([
|
||||
pageSource('../src/pages/user/learning/index.vue'),
|
||||
pageSource('../src/services/practice.ts')
|
||||
]);
|
||||
|
||||
assert.match(source, /错题本/);
|
||||
assert.match(source, /getPracticeMistakes/);
|
||||
assert.match(source, /retryAssignmentId/);
|
||||
assert.match(source, /pendingAssignmentKey/);
|
||||
assert.match(practiceService, /\/api\/aihr\/mobile\/practice\/mistakes/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user