const assert = require("node:assert/strict"); const fs = require("node:fs"); const path = require("node:path"); const test = require("node:test"); const frontendRoot = path.resolve(__dirname, ".."); const pageSource = fs.readFileSync(path.join(frontendRoot, "src/views/training/GenericTrainingPage.vue"), "utf8"); const routerSource = fs.readFileSync(path.join(frontendRoot, "src/router/index.js"), "utf8"); test("综合实训不显示右下角补充步骤", () => { assert.match( routerSource, /pageKey: "comprehensive-case-training", hideSupplementSteps: true/, ); }); test("综合实训操作按钮复用统一工具栏并位于工作台标题右侧", () => { assert.match( pageSource, /