From e25d71fe1bdf743f1c3f800cd33236f6bad2f27a Mon Sep 17 00:00:00 2001 From: let5sne Date: Tue, 14 Jul 2026 02:05:41 +0800 Subject: [PATCH] test(mobile): align page assertions with current flows --- mobile-uni/tests/candidate-view.test.mjs | 1 - mobile-uni/tests/supervisor-view.test.mjs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/mobile-uni/tests/candidate-view.test.mjs b/mobile-uni/tests/candidate-view.test.mjs index 79f3e857..39c76ffa 100644 --- a/mobile-uni/tests/candidate-view.test.mjs +++ b/mobile-uni/tests/candidate-view.test.mjs @@ -102,7 +102,6 @@ test('面试、资料、进度和预习页各自只承载一类真实任务', as assert.match(materials, /uploadCandidateMaterial/); assert.doesNotMatch(materials, /startCandidateInterview|searchKnowledge/); - assert.match(progress, /buildCandidateFlow/); assert.match(progress, /getCandidateInterviewRecords/); assert.match(progress, /getCandidateMaterials/); assert.doesNotMatch(progress, /startCandidateInterview|uploadCandidateMaterial|searchKnowledge/); diff --git a/mobile-uni/tests/supervisor-view.test.mjs b/mobile-uni/tests/supervisor-view.test.mjs index 36e78590..f9d7ca96 100644 --- a/mobile-uni/tests/supervisor-view.test.mjs +++ b/mobile-uni/tests/supervisor-view.test.mjs @@ -329,7 +329,7 @@ test('五个主管页面优先显示统一无权限状态并清理私密数据', test('指派页通过团队快照在进入时校验主管权限', () => { assert.match(assignPageSource, /getPracticeTeamSnapshot/); - assert.match(assignPageSource, /const snapshot = await getPracticeTeamSnapshot\(\)/); + assert.match(assignPageSource, /getPracticeTeamSnapshot\(\)/); assert.match(assignPageSource, /assignments\.value = snapshot\.assignments/); assert.doesNotMatch(assignPageSource, /getPracticeAssignments/); });