fix(mobile): align sop position label

This commit is contained in:
2026-07-14 20:44:47 +08:00
parent 908d86883f
commit 493fd5361e
3 changed files with 15 additions and 2 deletions
@@ -162,6 +162,15 @@ test('员工练习页显示当前岗位而不是固定生活顾问', async () =>
assert.doesNotMatch(source, /scenario-desc">生活顾问 · 业主服务场景/);
});
test('员工问师傅页显示当前岗位而不是固定生活顾问', async () => {
const source = await pageSource('../src/pages/user/sop/index.vue');
assert.match(source, /getSelectedPosition/);
assert.match(source, /const positionLabel = ref\(getSelectedPosition\(\)\)/);
assert.match(source, /\{\{ positionLabel \}\} · 住宅项目/);
assert.doesNotMatch(source, /sop-context">管家(生活顾问) · 住宅项目/);
});
test('训练页最近练过保留派发任务来源', async () => {
const source = await pageSource('../src/pages/user/practice/index.vue');