fix(mobile): align practice position label

This commit is contained in:
2026-07-14 20:35:28 +08:00
parent e497c5d698
commit 857092c2c6
3 changed files with 14 additions and 2 deletions
@@ -153,6 +153,15 @@ test('训练页保留任务卡、对话区、回复区和结果区', async () =>
assert.match(source, /result-card/);
});
test('员工练习页显示当前岗位而不是固定生活顾问', async () => {
const source = await pageSource('../src/pages/user/practice/index.vue');
assert.match(source, /getSelectedPosition/);
assert.match(source, /const positionLabel = ref\(getSelectedPosition\(\) \|\| '生活顾问'\)/);
assert.match(source, /\{\{ positionLabel \}\} · 业主服务场景/);
assert.doesNotMatch(source, /scenario-desc">生活顾问 · 业主服务场景/);
});
test('训练页最近练过保留派发任务来源', async () => {
const source = await pageSource('../src/pages/user/practice/index.vue');