const assert = require("assert"); const fs = require("fs"); const path = require("path"); // 历史背景:步骤条标准样式已收敛到共享样式表 student-training.scss(step-tab/step-bar), // 旧的逐页渐变与连接符断言随之失效;资料下载入口也已统一进 TrainingTaskToolbar。 // 本文件只保留仍然有效的共享样式与逐页行为断言。 const sharedStyles = fs.readFileSync(path.resolve(__dirname, "../src/assets/styles/student-training.scss"), "utf8"); assert.match(sharedStyles, /#app \.student-training-shell \.step-tab\.active \{/, "student-training.scss should define the standard active-step style"); const diagnosisPage = fs.readFileSync(path.resolve(__dirname, "../src/views/assessment/diagnosis.vue"), "utf8"); assert.doesNotMatch(diagnosisPage, /
Training Task<\/p>
/, "diagnosis.vue should not render the removed task-training heading or description");
assert.match(diagnosisPage, / /, "new-product-survey.vue should not render the removed task-training heading or description");
assert.match(newProductSurveyPage, /