You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1004 B
JavaScript
30 lines
1004 B
JavaScript
|
11 hours ago
|
const assert = require("assert");
|
||
|
|
const fs = require("fs");
|
||
|
|
const path = require("path");
|
||
|
|
|
||
|
|
const root = path.resolve(__dirname, "..");
|
||
|
|
const styles = fs.readFileSync(path.join(root, "src/assets/styles/student-training.scss"), "utf8");
|
||
|
|
|
||
|
|
assert.match(
|
||
|
|
styles,
|
||
|
|
/\.student-training-shell\s*\{[\s\S]*?--student-step-height:\s*42px;/,
|
||
|
|
"所有学生端实训页应使用更紧凑的步骤条高度"
|
||
|
|
);
|
||
|
|
assert.match(
|
||
|
|
styles,
|
||
|
|
/\.student-training-shell\s*>\s*main\s*\{[\s\S]*?padding:\s*12px\s*!important;/,
|
||
|
|
"所有学生端实训主卡应减少装饰性内边距"
|
||
|
|
);
|
||
|
|
assert.match(
|
||
|
|
styles,
|
||
|
|
/\.student-training-shell\s*>\s*main\s*>\s*\.task-card,[\s\S]*?padding:\s*10px\s+12px\s*!important;/,
|
||
|
|
"所有学生端工作台应为实操内容保留更多空间"
|
||
|
|
);
|
||
|
|
assert.match(
|
||
|
|
styles,
|
||
|
|
/\.student-training-shell\s+\.step-card,[\s\S]*?padding:\s*12px\s*!important;/,
|
||
|
|
"所有学生端步骤卡应使用紧凑内边距"
|
||
|
|
);
|
||
|
|
|
||
|
|
console.log("All student training pages use the compact layout density.");
|