feat(mobile): align employee practice screens for release
This commit is contained in:
@@ -46,7 +46,7 @@ test('manifest 明确声明为 uni-app Vue3 CLI 工程', async () => {
|
||||
test('员工端 tabBar 继续保留四个固定入口', async () => {
|
||||
const source = await pageSource('../src/pages.json');
|
||||
|
||||
assert.match(source, /"selectedColor"\s*:\s*"#2f6bff"/);
|
||||
assert.match(source, /"selectedColor"\s*:\s*"#e60012"/);
|
||||
assert.match(source, /pages\/user\/today\/index/);
|
||||
assert.match(source, /pages\/user\/practice\/index/);
|
||||
assert.match(source, /pages\/user\/sop\/index/);
|
||||
@@ -66,7 +66,7 @@ test('登录页按高保真原型保留品牌结构和紧凑验证码行', async
|
||||
test('共享视觉基座包含员工端主色和卡片圆角 token', async () => {
|
||||
const source = await pageSource('../src/styles/base.css');
|
||||
|
||||
assert.match(source, /--employee-primary:\s*#2f6bff/);
|
||||
assert.match(source, /--employee-primary:\s*#e60012/);
|
||||
assert.match(source, /--employee-card-radius:\s*24px/);
|
||||
assert.match(source, /\.employee-card\s*\{/);
|
||||
});
|
||||
@@ -143,7 +143,7 @@ test('问师傅页保留搜索框、答案区和总结卡入口', async () => {
|
||||
assert.match(source, /summary-panel/);
|
||||
});
|
||||
|
||||
test('训练页保留任务卡、对话区、回复区和结果区', async () => {
|
||||
test('训练页保留任务卡、对话区、回复区和结果区并互斥切换', async () => {
|
||||
const source = await pageSource('../src/pages/user/practice/index.vue');
|
||||
|
||||
assert.match(source, /scenario-card/);
|
||||
@@ -151,6 +151,11 @@ test('训练页保留任务卡、对话区、回复区和结果区', async () =>
|
||||
assert.match(source, /dialogue-card/);
|
||||
assert.match(source, /reply-card/);
|
||||
assert.match(source, /result-card/);
|
||||
assert.match(source, /class="result-actions"/);
|
||||
assert.match(source, />再练一次<\/button>/);
|
||||
assert.match(source, /practiceView === 'prep'/);
|
||||
assert.match(source, /practiceView === 'active'/);
|
||||
assert.match(source, /practiceView\.value === 'result'/);
|
||||
});
|
||||
|
||||
test('员工练习页显示当前岗位而不是固定生活顾问', async () => {
|
||||
|
||||
Reference in New Issue
Block a user